From: Nicolas Le Bayon Date: Wed, 11 Sep 2019 13:58:31 +0000 (+0200) Subject: gpio: stm32_gpio: do not mix error code types X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=243b61d15aaa59794e73769de7be64f02223cfad;p=project%2Fbcm63xx%2Fatf.git gpio: stm32_gpio: do not mix error code types Change-Id: I84f8a99be2dcdf7c51fbecdb324df8e2f32cc855 Signed-off-by: Nicolas Le Bayon Signed-off-by: Yann Gautier --- diff --git a/drivers/st/gpio/stm32_gpio.c b/drivers/st/gpio/stm32_gpio.c index 343ad6c1..a13c341a 100644 --- a/drivers/st/gpio/stm32_gpio.c +++ b/drivers/st/gpio/stm32_gpio.c @@ -165,7 +165,7 @@ int dt_set_pinctrl_config(int node) void *fdt; if (fdt_get_address(&fdt) == 0) { - return -ENOENT; + return -FDT_ERR_NOTFOUND; } if (status == DT_DISABLED) {