Skip to content
Commit e17fd4ba authored by John Stultz's avatar John Stultz
Browse files

rtc: Fix ioctl error path return



Bryan Henderson noticed that the  "RTC: Fix rtc driver ioctl specific
shortcutting" commit has a small bug: When an ioctl is called with an
invalid command code and the clock driver does not have an "ioctl"
method, the ioctl returns rc 0 instead of -ENOTTY.

This patch fixes the issue.

CC: Bryan Henderson <bryanh@giraffe-data.com>
CC: Gabor Z. Papp <gzp@papp.hu>
Reported-by: default avatarBryan Henderson <bryanh@giraffe-data.com>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent 1fa7b6a2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment