diff options
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap/linus/0052-em28xx-radio_fops-should-also-use-unlocked_ioctl.patch')
-rw-r--r-- | extras/recipes-kernel/linux/linux-omap/linus/0052-em28xx-radio_fops-should-also-use-unlocked_ioctl.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap/linus/0052-em28xx-radio_fops-should-also-use-unlocked_ioctl.patch b/extras/recipes-kernel/linux/linux-omap/linus/0052-em28xx-radio_fops-should-also-use-unlocked_ioctl.patch new file mode 100644 index 00000000..f8070990 --- /dev/null +++ b/extras/recipes-kernel/linux/linux-omap/linus/0052-em28xx-radio_fops-should-also-use-unlocked_ioctl.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 002eb3b2ab46fef443a2e40c52255e1c30b83704 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hans Verkuil <hverkuil@xs4all.nl> | ||
3 | Date: Sat, 18 Dec 2010 09:59:51 -0300 | ||
4 | Subject: [PATCH 52/65] em28xx: radio_fops should also use unlocked_ioctl | ||
5 | |||
6 | em28xx uses core assisted locking, so it shouldn't use .ioctl. | ||
7 | The .ioctl callback was replaced by .unlocked_ioctl for video nodes, | ||
8 | but not for radio nodes. This is now corrected. | ||
9 | |||
10 | Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> | ||
11 | Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com> | ||
12 | --- | ||
13 | drivers/media/video/em28xx/em28xx-video.c | 2 +- | ||
14 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
15 | |||
16 | diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c | ||
17 | index 908e3bc..2c30072 100644 | ||
18 | --- a/drivers/media/video/em28xx/em28xx-video.c | ||
19 | +++ b/drivers/media/video/em28xx/em28xx-video.c | ||
20 | @@ -2377,7 +2377,7 @@ static const struct v4l2_file_operations radio_fops = { | ||
21 | .owner = THIS_MODULE, | ||
22 | .open = em28xx_v4l2_open, | ||
23 | .release = em28xx_v4l2_close, | ||
24 | - .ioctl = video_ioctl2, | ||
25 | + .unlocked_ioctl = video_ioctl2, | ||
26 | }; | ||
27 | |||
28 | static const struct v4l2_ioctl_ops radio_ioctl_ops = { | ||
29 | -- | ||
30 | 1.6.6.1 | ||
31 | |||