]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/gpio/gpiolib.c
karo: merge with Ka-Ro specific tree for secure boot support
[karo-tx-uboot.git] / drivers / gpio / gpiolib.c
index ef314eefe94ac0e96a39fd3b378d50cbac998a25..63b287cda3aada77c86e304fbfe918b4ea56b428 100644 (file)
@@ -10,11 +10,11 @@ int gpio_request_one(unsigned int gpio, enum gpio_flags flags,
        if (ret)
                return ret;
 
-       if (flags == GPIOF_INPUT)
+       if (flags == GPIOFLAG_INPUT)
                gpio_direction_input(gpio);
-       else if (flags == GPIOF_OUTPUT_INIT_LOW)
+       else if (flags == GPIOFLAG_OUTPUT_INIT_LOW)
                gpio_direction_output(gpio, 0);
-       else if (flags == GPIOF_OUTPUT_INIT_HIGH)
+       else if (flags == GPIOFLAG_OUTPUT_INIT_HIGH)
                gpio_direction_output(gpio, 1);
 
        return ret;