Skip to content

Commit

Permalink
rtc-dev: Make RTC driver return ENOTTY instead of ENOIOCTLCMD
Browse files Browse the repository at this point in the history
Prevent the RTC driver from returning ENOIOCTLCMD to userspace.

Signed-off-by: Thomas Hommel <[email protected]>
Acked-by: Alessandro Zummo <[email protected]>
Cc: David Brownell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Thomas Hommel authored and Linus Torvalds committed Jul 31, 2007
1 parent a8bbf72 commit c8ed39e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/rtc/rtc-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c8ed39e

Please sign in to comment.