media: staging: media: imx: imx7-media-csi: Move misc init out of probe()
authorPaul Elder <paul.elder@ideasonboard.com>
Thu, 5 May 2022 12:48:33 +0000 (13:48 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 8 Jul 2022 17:02:30 +0000 (18:02 +0100)
commitf9806bd2b42d99ee321fca9757061c23666b8510
treeaeb8a54b6dad40f56ca77db91116ecb50befa3fe
parentd79d5e00be510f8bae4ded0e853238d3f50cd5db
media: staging: media: imx: imx7-media-csi: Move misc init out of probe()

There is a chunk of miscellaneous initializations related to the CSI
subdev and media pads directly in the probe function. Move them into the
imx7_csi_media_init() function to clean up the probe function.

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