[PATCH] RTC: Add a comment for ENOIOCTLCMD in ds1553_rtc_ioctl
Atsushi Nemoto [Tue, 27 Jun 2006 09:53:58 +0000 (02:53 -0700)]
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

drivers/rtc/rtc-ds1553.c

index ecafbad..762521a 100644 (file)
@@ -226,7 +226,7 @@ static int ds1553_rtc_ioctl(struct device *dev, unsigned int cmd,
        struct rtc_plat_data *pdata = platform_get_drvdata(pdev);
 
        if (pdata->irq < 0)
-               return -ENOIOCTLCMD;
+               return -ENOIOCTLCMD; /* fall back into rtc-dev's emulation */
        switch (cmd) {
        case RTC_AIE_OFF:
                pdata->irqen &= ~RTC_AF;