From: Thomas Hommel Date: Tue, 31 Jul 2007 07:37:31 +0000 (-0700) Subject: rtc-dev: Make RTC driver return ENOTTY instead of ENOIOCTLCMD X-Git-Tag: v2.6.23-rc2~138 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c8ed39ebe0cf490abd7bf7c77b728dd6fefb2cf8;p=linux-2.6-omap-h63xx.git rtc-dev: Make RTC driver return ENOTTY instead of ENOIOCTLCMD Prevent the RTC driver from returning ENOIOCTLCMD to userspace. Signed-off-by: Thomas Hommel Acked-by: Alessandro Zummo Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/rtc/rtc-dev.c b/drivers/rtc/rtc-dev.c index 304535942de..005fff3a350 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