drivers: gpio: davinci: Allow empty pinctrl

Ignore error if default pinctrl missing. Some devices allow specifying
pinctrl in them, which is better to do , specially for static (on-board)
devices to keep overlays simpler.

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
This commit is contained in:
Ayush Singh 2025-05-12 10:39:45 +05:30 committed by Benjamin Cabé
commit 88b108d201

View file

@ -160,7 +160,7 @@ static int gpio_davinci_init(const struct device *dev)
config->bank_config(dev);
ret = pinctrl_apply_state(config->pcfg, PINCTRL_STATE_DEFAULT);
if (ret < 0) {
if (ret < 0 && ret != -ENOENT) {
LOG_ERR("failed to apply pinctrl");
return ret;
}