media: staging: media: imx: imx7-media-csi: Drop imx_media_add_video_device call

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>
This commit is contained in:
Laurent Pinchart 2022-05-10 01:25:26 +01:00 committed by Mauro Carvalho Chehab
parent 23bcc91082
commit 55eb173fe2

View 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;
}