[PATCH] RTC: Add a comment for ENOIOCTLCMD in ds1553_rtc_ioctl
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Tue, 27 Jun 2006 09:53:58 +0000 (02:53 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 28 Jun 2006 00:32:39 +0000 (17:32 -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 ecafbad41a242ce894d9247c88c6e1a5d0e67734..762521a1419cf296f080e7e4672e430f3029decc 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;