]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (6218): V4L: Int if: Use -ENOIOCTLCMD for nonexistent ioctls
authorSakari Ailus <sakari.ailus@nokia.com>
Thu, 30 Aug 2007 12:20:40 +0000 (09:20 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:14:39 +0000 (22:14 -0300)
Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/v4l2-int-device.c

index 7ad8700ebdeab493392a1ac1b51012c2479f9a6b..f497c9458344e36eeaf32026a0e440414b5b5496 100644 (file)
@@ -143,7 +143,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)
@@ -155,7 +155,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)