pinctrl: sunxi: do not print error message for EPROBE_DEFER
Subsystems (3)
PATCH 1/1 pinctrl: sunxi: do not print error message for EPROBE_DEFER
Avoid printing an error message if getting a regulator fails with EPROBE_DEFER. This can happen if, for example, a regulator supplying one of the main banks is controlled by a PL pin.
Signed-off-by Mans Rullgard <[email protected]>
--- drivers/pinctrl/sunxi/pinctrl-sunxi.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
drivers/pinctrl/sunxi/pinctrl-sunxi.c +4 -5
@@ -777,11 +777,10 @@ static int sunxi_pmx_request(struct pinctrl_dev *pctldev, unsigned offset)snprintf (supply,sizeof (supply),"vcc-p%c" ,'a' + bank); reg =regulator_get (pctl->dev, supply); -if (IS_ERR (reg)) { -dev_err (pctl->dev,"Couldn't get bank P%c regulator\n" , -'A' + bank); -return PTR_ERR (reg); - } +if (IS_ERR (reg)) +return dev_err_probe (pctl->dev,PTR_ERR (reg), +"Couldn't get bank P%c regulator\n" , +'A' + bank); ret =regulator_enable (reg);if (ret) {
Signature · 1 line
2.35.1
Quoted 6 lines · Mans Rullgard
Avoid printing an error message if getting a regulator fails with
EPROBE_DEFER. This can happen if, for example, a regulator supplying one of the main banks is controlled by a PL pin.Signed-off-by Mans Rullgard <[email protected]>
Acked-by Chen-Yu Tsai <[email protected]>
Quoted 5 lines · Mans Rullgard
Avoid printing an error message if getting a regulator fails with
EPROBE_DEFER. This can happen if, for example, a regulator supplying one of the main banks is controlled by a PL pin.Signed-off-by Mans Rullgard <[email protected]>
Patch applied, thanks!
Yours,
Linus Walleij