media: atomisp: Remove unused lock member from struct atomisp_sub_device
authorHans de Goede <hdegoede@redhat.com>
Fri, 2 Sep 2022 11:04:33 +0000 (13:04 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 08:04:22 +0000 (10:04 +0200)
The spin-lock embedded in struct atomisp_sub_device is not used anywhere,
remove it.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_subdev.c
drivers/staging/media/atomisp/pci/atomisp_subdev.h

index 047e2e9d63d7997ff60aaec3480cf575ac0a9a2b..4a43677015098c4b8dcc3f43bd8c2b1e9c992e50 100644 (file)
@@ -1356,7 +1356,6 @@ int atomisp_subdev_init(struct atomisp_device *isp)
                return -ENOMEM;
        for (i = 0; i < isp->num_of_streams; i++) {
                asd = &isp->asd[i];
-               spin_lock_init(&asd->lock);
                asd->isp = isp;
                isp_subdev_init_params(asd);
                asd->index = i;
index d8b2dd00a7929991d7381f8dd5a1cd5f01f1219a..eaf7678804075e3490c97f1d5fdd605770c11f73 100644 (file)
@@ -272,7 +272,6 @@ struct atomisp_sub_device {
        /* video pipe main output */
        struct atomisp_video_pipe video_out_video_capture;
        /* struct isp_subdev_params params; */
-       spinlock_t lock;
        struct atomisp_device *isp;
        struct v4l2_ctrl_handler ctrl_handler;
        struct v4l2_ctrl *fmt_auto;