media: imx7_mipi_csis: fix racy entity pads init
authorRui Miguel Silva <rui.silva@linaro.org>
Tue, 30 Apr 2019 22:25:23 +0000 (18:25 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 28 May 2019 16:13:01 +0000 (12:13 -0400)
commit03006bd0880ad23600eff76f7c6b7eb8c87fe3d7
tree4584b9fcc4f7269edd3585cda09f6d2cbde95fac
parent6002e0be75715a3698af89b79fe3829414bf1441
media: imx7_mipi_csis: fix racy entity pads init

Setting the media entity pads after the async register subdev can be
racy with probe complete callback. So, make sure that the media pads
are initialized before the probe complete is called.

For that move the media entity pads initialization to the registered
subdev internal operation.

Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/imx/imx7-mipi-csis.c