From 88b108d201c696667db123d571562f1c9f81f2ac Mon Sep 17 00:00:00 2001 From: Ayush Singh Date: Mon, 12 May 2025 10:39:45 +0530 Subject: [PATCH] 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 --- drivers/gpio/gpio_davinci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio_davinci.c b/drivers/gpio/gpio_davinci.c index f0cb7e7a4d4..35be3975c67 100644 --- a/drivers/gpio/gpio_davinci.c +++ b/drivers/gpio/gpio_davinci.c @@ -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; }