pinctrl: sunxi: sun50i-h5: Switch to use dev_err_probe() helper
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 17 Sep 2022 12:22:08 +0000 (20:22 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 20 Sep 2022 09:18:24 +0000 (11:18 +0200)
commit35b871f72a5a06dc5a328427a437797ad99c0696
tree685503ce4837110065d480cee142d87936248f8f
parent790cf9e3da3f16d65d389d714f6e18f27cf18704
pinctrl: sunxi: sun50i-h5: Switch to use dev_err_probe() helper

In the probe path, dev_err() can be replace with dev_err_probe()
which will check if error code is -EPROBE_DEFER and and prints the
error name.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220917122208.1894769-1-yangyingliang@huawei.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sunxi/pinctrl-sun50i-h5.c