diff options
-rw-r--r-- | drivers/rtc/rtc-dev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-dev.c b/drivers/rtc/rtc-dev.c index f4e5f0040ff7..304535942de2 100644 --- a/drivers/rtc/rtc-dev.c +++ b/drivers/rtc/rtc-dev.c | |||
@@ -341,6 +341,8 @@ static int rtc_dev_ioctl(struct inode *inode, struct file *file, | |||
341 | case RTC_IRQP_READ: | 341 | case RTC_IRQP_READ: |
342 | if (ops->irq_set_freq) | 342 | if (ops->irq_set_freq) |
343 | err = put_user(rtc->irq_freq, (unsigned long __user *)uarg); | 343 | err = put_user(rtc->irq_freq, (unsigned long __user *)uarg); |
344 | else | ||
345 | err = -ENOTTY; | ||
344 | break; | 346 | break; |
345 | 347 | ||
346 | case RTC_IRQP_SET: | 348 | case RTC_IRQP_SET: |