diff options
Diffstat (limited to 'drivers/media/radio/radio-sf16fmr2.c')
-rw-r--r-- | drivers/media/radio/radio-sf16fmr2.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/media/radio/radio-sf16fmr2.c b/drivers/media/radio/radio-sf16fmr2.c index b0ccf7cb5952..6290553d24be 100644 --- a/drivers/media/radio/radio-sf16fmr2.c +++ b/drivers/media/radio/radio-sf16fmr2.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <asm/uaccess.h> /* copy to/from user */ | 22 | #include <asm/uaccess.h> /* copy to/from user */ |
23 | #include <linux/videodev2.h> /* kernel radio structs */ | 23 | #include <linux/videodev2.h> /* kernel radio structs */ |
24 | #include <media/v4l2-common.h> | 24 | #include <media/v4l2-common.h> |
25 | #include <media/v4l2-ioctl.h> | ||
25 | #include <linux/mutex.h> | 26 | #include <linux/mutex.h> |
26 | 27 | ||
27 | static struct mutex lock; | 28 | static struct mutex lock; |
@@ -410,12 +411,7 @@ static const struct file_operations fmr2_fops = { | |||
410 | .llseek = no_llseek, | 411 | .llseek = no_llseek, |
411 | }; | 412 | }; |
412 | 413 | ||
413 | static struct video_device fmr2_radio= | 414 | static const struct v4l2_ioctl_ops fmr2_ioctl_ops = { |
414 | { | ||
415 | .owner = THIS_MODULE, | ||
416 | .name = "SF16FMR2 radio", | ||
417 | . type = VID_TYPE_TUNER, | ||
418 | .fops = &fmr2_fops, | ||
419 | .vidioc_querycap = vidioc_querycap, | 415 | .vidioc_querycap = vidioc_querycap, |
420 | .vidioc_g_tuner = vidioc_g_tuner, | 416 | .vidioc_g_tuner = vidioc_g_tuner, |
421 | .vidioc_s_tuner = vidioc_s_tuner, | 417 | .vidioc_s_tuner = vidioc_s_tuner, |
@@ -430,6 +426,12 @@ static struct video_device fmr2_radio= | |||
430 | .vidioc_s_ctrl = vidioc_s_ctrl, | 426 | .vidioc_s_ctrl = vidioc_s_ctrl, |
431 | }; | 427 | }; |
432 | 428 | ||
429 | static struct video_device fmr2_radio = { | ||
430 | .name = "SF16FMR2 radio", | ||
431 | .fops = &fmr2_fops, | ||
432 | .ioctl_ops = &fmr2_ioctl_ops, | ||
433 | }; | ||
434 | |||
433 | static int __init fmr2_init(void) | 435 | static int __init fmr2_init(void) |
434 | { | 436 | { |
435 | fmr2_unit.port = io; | 437 | fmr2_unit.port = io; |