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:
parent
431f202732
commit
88b108d201
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue