[PATCH] rtc subsystem: use ENOIOCTLCMD and ENOTTY where appropriate
[linux-2.6.git] / drivers / rtc / rtc-test.c
index e1f7e8e..e1fa5fe 100644 (file)
@@ -71,7 +71,7 @@ static int test_rtc_ioctl(struct device *dev, unsigned int cmd,
                return 0;
 
        default:
-               return -EINVAL;
+               return -ENOIOCTLCMD;
        }
 }