]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/rockchip: dw_hdmi: Use dev_err_probe() to simplify code
authorYumeng Fang <fang.yumeng@zte.com.cn>
Thu, 15 May 2025 12:35:54 +0000 (20:35 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 8 Jul 2025 15:35:49 +0000 (17:35 +0200)
commit52008d6fe7fa84ecf23864c5cc373beb085f30b9
tree6f358305d39cc3a778ece8c962840ad0a0af78ca
parentafbbca25d06e2d361016da43dbb90f3a6034913b
drm/rockchip: dw_hdmi: Use dev_err_probe() to simplify code

In the probe path, dev_err() can be replaced with dev_err_probe()
which will check if error code is -EPROBE_DEFER and prints the
error name. It also sets the defer probe reason which can be
checked later through debugfs.

Signed-off-by: Yumeng Fang <fang.yumeng@zte.com.cn>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20250515203554564-j1jBXUXR6bdiN6zARicC@zte.com.cn
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c