gpio: stm32_gpio: do not mix error code types
[project/bcm63xx/atf.git] / drivers / st / gpio / stm32_gpio.c
index 343ad6c1de831412d91bb75d868b130cf2e96b84..a13c341a81657bc3f3b1dae1b9cac1456ea60dc5 100644 (file)
@@ -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) {