pinctrl: stm32: Switch to use dev_err_probe() helper
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 17 Sep 2022 12:20:15 +0000 (20:20 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 20 Sep 2022 09:16:42 +0000 (11:16 +0200)
commit790cf9e3da3f16d65d389d714f6e18f27cf18704
tree44ced9b52fcd5978c99e0e28437eb79a79957110
parenta72be048b71c10475d169d3951c49fb8a6a803e3
pinctrl: stm32: 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 prints the
error name.

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