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: Marek Vasut <marex@denx.de>
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220202081755.145716-2-alexander.stein@ew.tq-group.com
This commit is contained in:
Alexander Stein 2022-02-02 09:17:54 +01:00 committed by Marek Vasut
parent 3f1a31ff8e
commit c5e804ba38

View File

@ -259,8 +259,7 @@ static int mxsfb_load(struct drm_device *drm,
ret = mxsfb_attach_bridge(mxsfb);
if (ret) {
if (ret != -EPROBE_DEFER)
dev_err(drm->dev, "Cannot connect bridge: %d\n", ret);
dev_err_probe(drm->dev, ret, "Cannot connect bridge\n");
goto err_vblank;
}