mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-18 03:06:43 +00:00
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:
parent
3f1a31ff8e
commit
c5e804ba38
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user