]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/media/video/em28xx/em28xx-video.c
[media] em28xx: radio_fops should also use unlocked_ioctl
[mv-sheeva.git] / drivers / media / video / em28xx / em28xx-video.c
index 741c4fcf0d280832d8d07e4c0abfa9a53ff5e3cf..2c3007280032ea5472e45e9b1c75ee38aaa36b4c 100644 (file)
@@ -1614,7 +1614,6 @@ static int vidioc_s_register(struct file *file, void *priv,
        struct em28xx_fh      *fh  = priv;
        struct em28xx         *dev = fh->dev;
        __le16 buf;
-       int    rc;
 
        switch (reg->match.type) {
        case V4L2_CHIP_MATCH_AC97:
@@ -2378,7 +2377,7 @@ static const struct v4l2_file_operations radio_fops = {
        .owner         = THIS_MODULE,
        .open          = em28xx_v4l2_open,
        .release       = em28xx_v4l2_close,
-       .ioctl         = video_ioctl2,
+       .unlocked_ioctl = video_ioctl2,
 };
 
 static const struct v4l2_ioctl_ops radio_ioctl_ops = {
@@ -2445,6 +2444,7 @@ int em28xx_register_analog_devices(struct em28xx *dev)
 
        /* set default norm */
        dev->norm = em28xx_video_template.current_norm;
+       v4l2_device_call_all(&dev->v4l2_dev, 0, core, s_std, dev->norm);
        dev->interlaced = EM28XX_INTERLACED_DEFAULT;
        dev->ctl_input = 0;