Skip to content
Snippets Groups Projects
Commit c9b2572f authored by Florian Fainelli's avatar Florian Fainelli Committed by Linus Walleij
Browse files

pinctrl: nsp-gpio: Silence probe deferral messages


We can have gpiochip_add_data() return -EPROBE_DEFER which will make
us produce the "unable to add GPIO chip" message which is confusing.
Use dev_err_probe() to silence probe deferral messages.

Signed-off-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: default avatarDhruva Gole <d-gole@ti.com>
Link: https://lore.kernel.org/r/20230808180733.2081353-3-florian.fainelli@broadcom.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent d2606a63
No related branches found
No related tags found
No related merge requests found
...@@ -685,10 +685,8 @@ static int nsp_gpio_probe(struct platform_device *pdev) ...@@ -685,10 +685,8 @@ static int nsp_gpio_probe(struct platform_device *pdev)
} }
ret = devm_gpiochip_add_data(dev, gc, chip); ret = devm_gpiochip_add_data(dev, gc, chip);
if (ret < 0) { if (ret < 0)
dev_err(dev, "unable to add GPIO chip\n"); return dev_err_probe(dev, ret, "unable to add GPIO chip\n");
return ret;
}
ret = nsp_gpio_register_pinconf(chip); ret = nsp_gpio_register_pinconf(chip);
if (ret) { if (ret) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment