From 243b61d15aaa59794e73769de7be64f02223cfad Mon Sep 17 00:00:00 2001 From: Nicolas Le Bayon Date: Wed, 11 Sep 2019 15:58:31 +0200 Subject: gpio: stm32_gpio: do not mix error code types Change-Id: I84f8a99be2dcdf7c51fbecdb324df8e2f32cc855 Signed-off-by: Nicolas Le Bayon Signed-off-by: Yann Gautier --- drivers/st/gpio/stm32_gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers') 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) { -- cgit v1.2.3