Skip to content

Commit 88b108d

Browse files
Ayush1325kartben
authored andcommitted
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>
1 parent 431f202 commit 88b108d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio_davinci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ static int gpio_davinci_init(const struct device *dev)
160160
config->bank_config(dev);
161161

162162
ret = pinctrl_apply_state(config->pcfg, PINCTRL_STATE_DEFAULT);
163-
if (ret < 0) {
163+
if (ret < 0 && ret != -ENOENT) {
164164
LOG_ERR("failed to apply pinctrl");
165165
return ret;
166166
}

0 commit comments

Comments
 (0)