diff options
Diffstat (limited to 'sound/i2c/other/tea575x-tuner.c')
-rw-r--r-- | sound/i2c/other/tea575x-tuner.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sound/i2c/other/tea575x-tuner.c b/sound/i2c/other/tea575x-tuner.c index aa9900dff6e9..ac62ee791a60 100644 --- a/sound/i2c/other/tea575x-tuner.c +++ b/sound/i2c/other/tea575x-tuner.c | |||
@@ -317,7 +317,6 @@ static int tea575x_s_ctrl(struct v4l2_ctrl *ctrl) | |||
317 | } | 317 | } |
318 | 318 | ||
319 | static const struct v4l2_file_operations tea575x_fops = { | 319 | static const struct v4l2_file_operations tea575x_fops = { |
320 | .owner = THIS_MODULE, | ||
321 | .unlocked_ioctl = video_ioctl2, | 320 | .unlocked_ioctl = video_ioctl2, |
322 | .open = v4l2_fh_open, | 321 | .open = v4l2_fh_open, |
323 | .release = v4l2_fh_release, | 322 | .release = v4l2_fh_release, |
@@ -337,7 +336,6 @@ static const struct v4l2_ioctl_ops tea575x_ioctl_ops = { | |||
337 | }; | 336 | }; |
338 | 337 | ||
339 | static const struct video_device tea575x_radio = { | 338 | static const struct video_device tea575x_radio = { |
340 | .fops = &tea575x_fops, | ||
341 | .ioctl_ops = &tea575x_ioctl_ops, | 339 | .ioctl_ops = &tea575x_ioctl_ops, |
342 | .release = video_device_release_empty, | 340 | .release = video_device_release_empty, |
343 | }; | 341 | }; |
@@ -349,7 +347,7 @@ static const struct v4l2_ctrl_ops tea575x_ctrl_ops = { | |||
349 | /* | 347 | /* |
350 | * initialize all the tea575x chips | 348 | * initialize all the tea575x chips |
351 | */ | 349 | */ |
352 | int snd_tea575x_init(struct snd_tea575x *tea) | 350 | int snd_tea575x_init(struct snd_tea575x *tea, struct module *owner) |
353 | { | 351 | { |
354 | int retval; | 352 | int retval; |
355 | 353 | ||
@@ -374,6 +372,9 @@ int snd_tea575x_init(struct snd_tea575x *tea) | |||
374 | tea->vd.lock = &tea->mutex; | 372 | tea->vd.lock = &tea->mutex; |
375 | tea->vd.v4l2_dev = tea->v4l2_dev; | 373 | tea->vd.v4l2_dev = tea->v4l2_dev; |
376 | tea->vd.ctrl_handler = &tea->ctrl_handler; | 374 | tea->vd.ctrl_handler = &tea->ctrl_handler; |
375 | tea->fops = tea575x_fops; | ||
376 | tea->fops.owner = owner; | ||
377 | tea->vd.fops = &tea->fops; | ||
377 | set_bit(V4L2_FL_USE_FH_PRIO, &tea->vd.flags); | 378 | set_bit(V4L2_FL_USE_FH_PRIO, &tea->vd.flags); |
378 | /* disable hw_freq_seek if we can't use it */ | 379 | /* disable hw_freq_seek if we can't use it */ |
379 | if (tea->cannot_read_data) | 380 | if (tea->cannot_read_data) |