[PATCH] rtc subsystem: use ENOIOCTLCMD and ENOTTY where appropriate
[linux-2.6.git] / drivers / rtc / rtc-sa1100.c
index 2bc8aad..a997529 100644 (file)
@@ -247,7 +247,7 @@ static int sa1100_rtc_ioctl(struct device *dev, unsigned int cmd,
                rtc_freq = arg;
                return 0;
        }
-       return -EINVAL;
+       return -ENOIOCTLCMD;
 }
 
 static int sa1100_rtc_read_time(struct device *dev, struct rtc_time *tm)