Commit c8ed39eb authored by Thomas Hommel's avatar Thomas Hommel Committed by Linus Torvalds

rtc-dev: Make RTC driver return ENOTTY instead of ENOIOCTLCMD

Prevent the RTC driver from returning ENOIOCTLCMD to userspace.
Signed-off-by: default avatarThomas Hommel <thomas.hommel@gefanuc.com>
Acked-by: default avatarAlessandro Zummo <a.zummo@towertech.it>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a8bbf72a
...@@ -348,6 +348,8 @@ static int rtc_dev_ioctl(struct inode *inode, struct file *file, ...@@ -348,6 +348,8 @@ static int rtc_dev_ioctl(struct inode *inode, struct file *file,
case RTC_IRQP_SET: case RTC_IRQP_SET:
if (ops->irq_set_freq) if (ops->irq_set_freq)
err = rtc_irq_set_freq(rtc, rtc->irq_task, arg); err = rtc_irq_set_freq(rtc, rtc->irq_task, arg);
else
err = -ENOTTY;
break; break;
#if 0 #if 0
......
Markdown is supported
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