media: ov13b10: Defer probe if no endpoint found
authorBingbu Cao <bingbu.cao@intel.com>
Tue, 13 Jun 2023 04:55:43 +0000 (06:55 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 14 Jul 2023 11:05:50 +0000 (13:05 +0200)
commitb7602d625b8a33c6614faa0de8aa7d57dc95cd3d
treeceb6b67841375b51b41ea99d351c7027e908cfb2
parenta828002f38c5ee49d3f0c0e64c0f0caa1aec8dc2
media: ov13b10: Defer probe if no endpoint found

The ov13b10 need be connected to a CIO2 or IPU device by bridge, sometimes
the bridge driver was not probed before ov13b10 driver, then the absence
of the fwnode endpoint for this device is expected, so driver return
-EPROBE_DEFER in this case to let the probe occur after bridge driver.

Signed-off-by: Hao Yao <hao.yao@intel.com>
Signed-off-by: Bingbu Cao <bingbu.cao@intel.com>
Reviewed-by: Tommaso Merciai <tomm.merciai@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ov13b10.c