summaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorThomas Hommel <thomas.hommel@gefanuc.com>2007-07-31 00:37:31 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-31 15:39:36 -0700
commitc8ed39ebe0cf490abd7bf7c77b728dd6fefb2cf8 (patch)
tree0a58ec2f09403df615fe728bd7c4bba03e3116f0 /drivers/rtc
parenta8bbf72ab9b3072ece630d97689145b1a2f01221 (diff)
downloadlinux-c8ed39ebe0cf490abd7bf7c77b728dd6fefb2cf8.tar.gz
linux-c8ed39ebe0cf490abd7bf7c77b728dd6fefb2cf8.tar.bz2
linux-c8ed39ebe0cf490abd7bf7c77b728dd6fefb2cf8.zip
rtc-dev: Make RTC driver return ENOTTY instead of ENOIOCTLCMD
Prevent the RTC driver from returning ENOIOCTLCMD to userspace. Signed-off-by: Thomas Hommel <thomas.hommel@gefanuc.com> Acked-by: Alessandro Zummo <a.zummo@towertech.it> Cc: David Brownell <david-b@pacbell.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-dev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-dev.c b/drivers/rtc/rtc-dev.c
index 304535942de2..005fff3a3508 100644
--- a/drivers/rtc/rtc-dev.c
+++ b/drivers/rtc/rtc-dev.c
@@ -348,6 +348,8 @@ static int rtc_dev_ioctl(struct inode *inode, struct file *file,
case RTC_IRQP_SET:
if (ops->irq_set_freq)
err = rtc_irq_set_freq(rtc, rtc->irq_task, arg);
+ else
+ err = -ENOTTY;
break;
#if 0