]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/rockchip: vop2: Consistently use dev_err_probe()
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Sun, 23 Feb 2025 09:31:38 +0000 (11:31 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 27 Feb 2025 10:51:22 +0000 (11:51 +0100)
commitb06d1ef3355571383cdb463cf0195b7a02efdfbf
treed1428a5d28ace6f918b273eb07e7353049cb8a13
parentf8dd7fc9ba88bc4a6ea85269287a51fb756440e2
drm/rockchip: vop2: Consistently use dev_err_probe()

Replace drm_err() calls in vop2_bind() and vop2_create_crtcs() with
dev_err_probe(), to simplify error handling and improve consistency.

Additionally, ensure the already existing dev_err_probe() invocations
pass drm->dev instead of dev as their first argument, so that we get the
actual reason in case of -EPROBE_DEFER errors:

  platform display-subsystem: deferred probe pending: (reason unknown)
    vs.
  platform display-subsystem: deferred probe pending: rockchip-drm: <actual reason>

While at it, add the missing '\n' to some of the message strings.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20250223-vop2-hdmi1-disp-modes-v2-2-f4cec5e06fbe@collabora.com
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c