diff mbox series

[20/50] staging: media: imx: imx7-media-csi: Drop imx_media_add_video_device call

Message ID 20220510115859.19777-21-laurent.pinchart@ideasonboard.com
State Accepted
Commit 55eb173fe23b57473c6f06d6cc28f99202c50d07
Headers show
Series [01/50] staging: media: imx: imx7-media-csi: Initialize locks early on | expand

Commit Message

Laurent Pinchart May 10, 2022, 11:58 a.m. UTC
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>
---
 drivers/staging/media/imx/imx7-media-csi.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/drivers/staging/media/imx/imx7-media-csi.c b/drivers/staging/media/imx/imx7-media-csi.c
index 891e939d7ea5..b6643952da25 100644
--- a/drivers/staging/media/imx/imx7-media-csi.c
+++ b/drivers/staging/media/imx/imx7-media-csi.c
@@ -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;
 }