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-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c8ed39ebe0cf490abd7bf7c77b728dd6fefb2cf8;p=openwrt%2Fstaging%2Fblogic.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 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