Commit c5e804ba authored by Alexander Stein's avatar Alexander Stein Committed by Marek Vasut

drm: mxsfb: Use dev_err_probe() helper

Use the dev_err_probe() helper, instead of open-coding the same
operation. This also adds a nice hint in
/sys/kernel/debug/devices_deferred.
Reviewed-by: default avatarMarek Vasut <marex@denx.de>
Signed-off-by: default avatarAlexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220202081755.145716-2-alexander.stein@ew.tq-group.com
parent 3f1a31ff
...@@ -259,8 +259,7 @@ static int mxsfb_load(struct drm_device *drm, ...@@ -259,8 +259,7 @@ static int mxsfb_load(struct drm_device *drm,
ret = mxsfb_attach_bridge(mxsfb); ret = mxsfb_attach_bridge(mxsfb);
if (ret) { if (ret) {
if (ret != -EPROBE_DEFER) dev_err_probe(drm->dev, ret, "Cannot connect bridge\n");
dev_err(drm->dev, "Cannot connect bridge: %d\n", ret);
goto err_vblank; goto err_vblank;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment