[PATCH 1/1] drm/bridge: sii902x: Use dev_err_probe
Andrzej Hajda
andrzej.hajda at intel.com
Tue Jan 17 11:27:59 UTC 2023
On 17.01.2023 11:59, Alexander Stein wrote:
> This helps figuring out why the device probe is deferred.
>
> Signed-off-by: Alexander Stein <alexander.stein at ew.tq-group.com>
> ---
> drivers/gpu/drm/bridge/sii902x.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/bridge/sii902x.c b/drivers/gpu/drm/bridge/sii902x.c
> index d212ff7f7a87..f4a8f227c41b 100644
> --- a/drivers/gpu/drm/bridge/sii902x.c
> +++ b/drivers/gpu/drm/bridge/sii902x.c
> @@ -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");
Reviewed-by: Andrzej Hajda <andrzej.hajda at intel.com>
Regards
Andrzej
> }
>
> mutex_init(&sii902x->mutex);
More information about the dri-devel
mailing list