]> git.sur5r.net Git - u-boot/blobdiff - drivers/gpio/mxs_gpio.c
Merge branch 'master' of git://git.denx.de/u-boot-arm
[u-boot] / drivers / gpio / mxs_gpio.c
index b7e959128e8e8b40f4da2bc8c87f259f28136aff..539738be9b5a38df0085412aa2253f5f9f3630cc 100644 (file)
@@ -120,7 +120,7 @@ int gpio_direction_output(int gp, int value)
 
 int gpio_request(int gp, const char *label)
 {
-       if (PAD_BANK(gp) > PINCTRL_BANKS)
+       if (PAD_BANK(gp) >= PINCTRL_BANKS)
                return -EINVAL;
 
        return 0;