From: Paul Elder Date: Fri, 6 May 2022 11:36:58 +0000 (+0100) Subject: media: staging: media: imx: imx7-media-csi: Remove imx_media_of_add_csi X-Git-Tag: v6.0-rc1~139^2~191 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=08b1fedddf1c7db7c7278cc1f985b394fd1a4bf1;p=thirdparty%2Fkernel%2Flinux.git media: staging: media: imx: imx7-media-csi: Remove imx_media_of_add_csi imx_media_of_add_csi() from imx-media-of.c validates that the fwnode for the CSI bridge is enabled, and adds the fwnode to the async notifier of the imxmd. The former is redundant, as if the CSI bridge driver probes, clearly it is enabled in the DT. The latter is not needed as the imxmd notifier isn't used anymore. The call is thus not needed and can be dropped. This removes the dependency of imx7-media-csi.c on imx-media-of.c. Signed-off-by: Paul Elder Acked-by: Rui Miguel Silva Tested-by: Alexander Stein Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/imx/imx7-media-csi.c b/drivers/staging/media/imx/imx7-media-csi.c index 4b1fae52e78bd..8af5b694d765f 100644 --- a/drivers/staging/media/imx/imx7-media-csi.c +++ b/drivers/staging/media/imx/imx7-media-csi.c @@ -1206,10 +1206,6 @@ static int imx7_csi_media_init(struct imx7_csi *csi) csi->imxmd = imxmd; - ret = imx_media_of_add_csi(imxmd, csi->dev->of_node); - if (ret < 0 && ret != -ENODEV && ret != -EEXIST) - goto error; - v4l2_subdev_init(&csi->sd, &imx7_csi_subdev_ops); v4l2_set_subdevdata(&csi->sd, csi); csi->sd.internal_ops = &imx7_csi_internal_ops;