From: Sakari Ailus Date: Thu, 23 Aug 2007 13:11:50 +0000 (+0300) Subject: V4L: Int if: Use -ENOIOCTLCMD for nonexistent ioctls. X-Git-Tag: v2.6.23-omap1~93 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c5ac15fa2ae8e2ce9764fbd79e6636c091956a6e;p=linux-2.6-omap-h63xx.git V4L: Int if: Use -ENOIOCTLCMD for nonexistent ioctls. Signed-off-by: Sakari Ailus --- diff --git a/drivers/media/video/v4l2-int-device.c b/drivers/media/video/v4l2-int-device.c index 85a29db1185..4ff17e33a85 100644 --- a/drivers/media/video/v4l2-int-device.c +++ b/drivers/media/video/v4l2-int-device.c @@ -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)