]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/gateworks/gw_ventana/gw_ventana.c
Merge branch 'master' of git://git.denx.de/u-boot-arm
[karo-tx-uboot.git] / board / gateworks / gw_ventana / gw_ventana.c
index 9a1b6dd9ce3173ddad3511cc626d57f35903fa59..8d086f84abea5381b185d70558de0cc633b3d82f 100644 (file)
@@ -1061,7 +1061,7 @@ static void setup_board_gpio(int board)
 #endif
 
        /* turn off (active-high) user LED's */
-       for (i = 0; i < 4; i++) {
+       for (i = 0; i < ARRAY_SIZE(gpio_cfg[board].leds); i++) {
                if (gpio_cfg[board].leds[i])
                        gpio_direction_output(gpio_cfg[board].leds[i], 1);
        }