Commit 52008d6
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.cn1 parent afbbca2 commit 52008d6
1 file changed
Lines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
217 | | - | |
218 | | - | |
| 216 | + | |
219 | 217 | | |
220 | 218 | | |
221 | 219 | | |
222 | 220 | | |
223 | 221 | | |
224 | | - | |
225 | | - | |
226 | | - | |
| 222 | + | |
227 | 223 | | |
228 | 224 | | |
229 | 225 | | |
| |||
573 | 569 | | |
574 | 570 | | |
575 | 571 | | |
576 | | - | |
577 | | - | |
578 | | - | |
| 572 | + | |
579 | 573 | | |
580 | 574 | | |
581 | 575 | | |
582 | 576 | | |
583 | 577 | | |
584 | | - | |
585 | | - | |
586 | | - | |
| 578 | + | |
587 | 579 | | |
588 | 580 | | |
589 | 581 | | |
| |||
0 commit comments