History

[media] em28xx: radio_fops should also use unlocked_ioctl

em28xx uses core assisted locking, so it shouldn't use .ioctl. The .ioctl callback was replaced by .unlocked_ioctl for video nodes, but not for radio nodes. This is now corrected.

Hans Verkuil committed 15 years ago

Commit 8fd0bda1 parent 46e67ac1 file · +1 −1Browse files

Unified · Split

drivers/media/video/em28xx/em28xx-video.c+1−1
@@ -2377,7 +2377,7 @@ static const struct v4l2_file_operations radio_fops = { · 2376 unmodified lines
2377 .owner = THIS_MODULE,2377 .owner = THIS_MODULE,
2378 .open = em28xx_v4l2_open,2378 .open = em28xx_v4l2_open,
2379 .release = em28xx_v4l2_close,2379 .release = em28xx_v4l2_close,
2380 .ioctl = video_ioctl2,2380 .unlocked_ioctl = video_ioctl2,
2381};2381};
2382 2382
2383static const struct v4l2_ioctl_ops radio_ioctl_ops = {2383static const struct v4l2_ioctl_ops radio_ioctl_ops = {