diff options
author | Alexander Stein <alexander.stein@ew.tq-group.com> | 2022-02-02 11:17:54 +0300 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2022-02-03 11:50:15 +0300 |
commit | c5e804ba38b5a3aa230e2a0ae9ed8058235f52d4 (patch) | |
tree | f045c43f008136a9fc4e5bb4daa346e7b85904bd /drivers | |
parent | 3f1a31ff8e3f6654d2b03a34095ca1658e4cfd77 (diff) | |
download | linux-c5e804ba38b5a3aa230e2a0ae9ed8058235f52d4.tar.xz |
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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/mxsfb/mxsfb_drv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/mxsfb/mxsfb_drv.c b/drivers/gpu/drm/mxsfb/mxsfb_drv.c index a7b49ba6b8e2..9d71c55a31c0 100644 --- a/drivers/gpu/drm/mxsfb/mxsfb_drv.c +++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.c @@ -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; } |