summaryrefslogtreecommitdiff
path: root/drivers/media/video/mxb.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2012-04-19 19:36:03 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-04-20 00:23:55 +0400
commitd1c754a9326d95dff93bfe8004cba8574a7a20a8 (patch)
tree2fd7dedd41270de9717dd87bfb8eb285d3bcfd62 /drivers/media/video/mxb.c
parentee71e7b3ae1780e4475aa5dd980dd99c0309079b (diff)
downloadlinux-d1c754a9326d95dff93bfe8004cba8574a7a20a8.tar.xz
[media] V4L2: drivers implementing vidioc_default should also return -ENOTTY
If the vidioc_default implementation doesn't support the ioctl, then drivers must return -ENOTTY instead of -EINVAL. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/mxb.c')
-rw-r--r--drivers/media/video/mxb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/mxb.c b/drivers/media/video/mxb.c
index 2e4131748438..ca3f70f0bad5 100644
--- a/drivers/media/video/mxb.c
+++ b/drivers/media/video/mxb.c
@@ -688,7 +688,7 @@ static long vidioc_default(struct file *file, void *fh, bool valid_prio,
/*
DEB2(pr_err("does not handle this ioctl\n"));
*/
- return -ENOIOCTLCMD;
+ return -ENOTTY;
}
return 0;
}