]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L: Int if: Use -ENOIOCTLCMD for nonexistent ioctls.
authorSakari Ailus <sakari.ailus@nokia.com>
Thu, 23 Aug 2007 13:11:50 +0000 (16:11 +0300)
committerTony Lindgren <tony@atomide.com>
Fri, 31 Aug 2007 20:08:41 +0000 (13:08 -0700)
Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com>
drivers/media/video/v4l2-int-device.c

index 85a29db1185863544ff9da79b63c50920cbfa62c..4ff17e33a85e930c941cdd1744dee240c7e8961a 100644 (file)
@@ -141,7 +141,7 @@ static v4l2_int_ioctl_func *find_ioctl(struct v4l2_int_slave *slave, int cmd,
 
 static int no_such_ioctl_0(struct v4l2_int_device *d)
 {
-       return -EINVAL;
+       return -ENOIOCTLCMD;
 }
 
 int v4l2_int_ioctl_0(struct v4l2_int_device *d, int cmd)
@@ -153,7 +153,7 @@ int v4l2_int_ioctl_0(struct v4l2_int_device *d, int cmd)
 
 static int no_such_ioctl_1(struct v4l2_int_device *d, void *arg)
 {
-       return -EINVAL;
+       return -ENOIOCTLCMD;
 }
 
 int v4l2_int_ioctl_1(struct v4l2_int_device *d, int cmd, void *arg)