media: staging: media: imx: imx7-media-csi: Drop imx_media_add_video_device call
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 10 May 2022 00:25:26 +0000 (01:25 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 17:02:43 +0000 (18:02 +0100)
There's no need to call imx_media_add_video_device() anymore, as the
video devices list it manages is only used by the control inheritance
mechanism in the helpers, which this driver doesn't use.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Rui Miguel Silva <rmfrfs@gmail.com>
Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/imx/imx7-media-csi.c

index be8bc4247875db91a43f0569f7f3c5011f27ffc4..cc27c1f8fff0ac00271e2be10cb45ed5651aeb8e 100644 (file)
@@ -1267,9 +1267,6 @@ static int imx7_csi_video_register(struct imx7_csi *csi)
                return ret;
        }
 
-       /* Add vdev to the video devices list. */
-       imx_media_add_video_device(&csi->imxmd, &csi->vdev);
-
        return 0;
 }