drm/bridge: sii902x: Use dev_err_probe
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Tue, 17 Jan 2023 10:59:03 +0000 (11:59 +0100)
committerNeil Armstrong <neil.armstrong@linaro.org>
Thu, 19 Jan 2023 07:41:41 +0000 (08:41 +0100)
This helps figuring out why the device probe is deferred.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230117105903.2068235-1-alexander.stein@ew.tq-group.com
drivers/gpu/drm/bridge/sii902x.c

index 7ae22bff93b8c60ed67909fb9e15be8ae6608e8d..ef66461e7f7c4cf6d892af361a84b510ae203086 100644 (file)
@@ -1116,7 +1116,8 @@ static int sii902x_probe(struct i2c_client *client)
                sii902x->next_bridge = of_drm_find_bridge(remote);
                of_node_put(remote);
                if (!sii902x->next_bridge)
-                       return -EPROBE_DEFER;
+                       return dev_err_probe(dev, -EPROBE_DEFER,
+                                            "Failed to find remote bridge\n");
        }
 
        mutex_init(&sii902x->mutex);