media: atomisp: Use video_dev.lock for ioctl locking
[platform/kernel/linux-starfive.git] / drivers / staging / media / atomisp / pci / atomisp_v4l2.c
index 4ab9185..026ff3c 100644 (file)
@@ -441,6 +441,7 @@ int atomisp_video_init(struct atomisp_video_pipe *video, const char *name,
                video->pad.flags = MEDIA_PAD_FL_SINK;
                video->vdev.fops = &atomisp_fops;
                video->vdev.ioctl_ops = &atomisp_ioctl_ops;
+               video->vdev.lock = &video->isp->mutex;
                break;
        default:
                return -EINVAL;