[PATCH] rtc subsystem: use ENOIOCTLCMD and ENOTTY where appropriate
[linux-2.6.git] / drivers / rtc / rtc-vr41xx.c
index 4d49fd5..277596c 100644 (file)
@@ -270,7 +270,7 @@ static int vr41xx_rtc_ioctl(struct device *dev, unsigned int cmd, unsigned long
                epoch = arg;
                break;
        default:
-               return -EINVAL;
+               return -ENOIOCTLCMD;
        }
 
        return 0;