Merge tag 'media/v4.16-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab...
[sfrench/cifs-2.6.git] / drivers / media / pci / saa7134 / saa7134-video.c
index 0ceaa3473cf27f79dd9389f431d6693e9d2b043b..1ca6a32ad10eebdf8269df43b78f37c5ece06c9a 100644 (file)
@@ -1531,6 +1531,8 @@ int saa7134_querycap(struct file *file, void *priv,
        case VFL_TYPE_VBI:
                cap->device_caps |= vbi_caps;
                break;
+       default:
+               return -EINVAL;
        }
        cap->capabilities = radio_caps | video_caps | vbi_caps |
                cap->device_caps | V4L2_CAP_DEVICE_CAPS;
@@ -2041,14 +2043,14 @@ static const struct v4l2_ioctl_ops radio_ioctl_ops = {
 struct video_device saa7134_video_template = {
        .name                           = "saa7134-video",
        .fops                           = &video_fops,
-       .ioctl_ops                      = &video_ioctl_ops,
+       .ioctl_ops                      = &video_ioctl_ops,
        .tvnorms                        = SAA7134_NORMS,
 };
 
 struct video_device saa7134_radio_template = {
        .name                   = "saa7134-radio",
        .fops                   = &radio_fops,
-       .ioctl_ops              = &radio_ioctl_ops,
+       .ioctl_ops              = &radio_ioctl_ops,
 };
 
 static const struct v4l2_ctrl_ops saa7134_ctrl_ops = {