The patch titled rtc-dev: return -ENOTTY in ioctl if irq_set_freq is not implemented by driver has been added to the -mm tree. Its filename is rtc-dev-return-enotty-in-ioctl-if-irq_set_freq-is-not-implemented-by-driver.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: rtc-dev: return -ENOTTY in ioctl if irq_set_freq is not implemented by driver From: Hans-Christian Egtvedt <hcegtvedt@xxxxxxxxx> Signed-off-by: Hans-Christian Egtvedt <hcegtvedt@xxxxxxxxx> Cc: Haavard Skinnemoen <hskinnemoen@xxxxxxxxx> Cc: David Brownell <david-b@xxxxxxxxxxx> Cc: Alessandro Zummo <a.zummo@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/rtc/rtc-dev.c | 2 ++ 1 files changed, 2 insertions(+) diff -puN drivers/rtc/rtc-dev.c~rtc-dev-return-enotty-in-ioctl-if-irq_set_freq-is-not-implemented-by-driver drivers/rtc/rtc-dev.c --- a/drivers/rtc/rtc-dev.c~rtc-dev-return-enotty-in-ioctl-if-irq_set_freq-is-not-implemented-by-driver +++ a/drivers/rtc/rtc-dev.c @@ -341,6 +341,8 @@ static int rtc_dev_ioctl(struct inode *i case RTC_IRQP_READ: if (ops->irq_set_freq) err = put_user(rtc->irq_freq, (unsigned long __user *)uarg); + else + err = -ENOTTY; break; case RTC_IRQP_SET: _ Patches currently in -mm which might be from hcegtvedt@xxxxxxxxx are git-avr32.patch watchdog-driver-for-at32ap700x-devices.patch watchdog-driver-for-at32ap700x-devices-fix.patch watchdog-driver-for-at32ap700x-devices-fix-2.patch watchdog-driver-for-at32ap700x-devices-fix-3.patch watchdog-driver-for-at32ap700x-devices-fix-4.patch rtc-make-example-code-jump-to-done-instead-of-return-when-ioctl-not-supported.patch rtc-dev-return-enotty-in-ioctl-if-irq_set_freq-is-not-implemented-by-driver.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html