media: ov2740: Return -EPROBE_DEFER if no endpoint is found
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 8 Sep 2023 09:56:16 +0000 (12:56 +0300)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Sat, 7 Oct 2023 08:55:48 +0000 (10:55 +0200)
With ipu bridge, endpoints may only be created when ipu bridge has
initialised. This may happen after the sensor driver has first probed.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/ov2740.c

index d83ac31efd9cb8cb5385ab2e2b492b444fe5a600..24e468485fbf01d80da32dc8345abd52f4440f45 100644 (file)
@@ -931,7 +931,7 @@ static int ov2740_check_hwcfg(struct device *dev)
 
        ep = fwnode_graph_get_next_endpoint(fwnode, NULL);
        if (!ep)
-               return -ENXIO;
+               return -EPROBE_DEFER;
 
        ret = v4l2_fwnode_endpoint_alloc_parse(ep, &bus_cfg);
        fwnode_handle_put(ep);