]> git.sur5r.net Git - u-boot/commitdiff
imx: ventana: fix invalid dio configuration for pwm mode
authorTim Harvey <tharvey@gateworks.com>
Tue, 24 May 2016 18:03:54 +0000 (11:03 -0700)
committerStefano Babic <sbabic@denx.de>
Tue, 31 May 2016 15:25:16 +0000 (17:25 +0200)
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
board/gateworks/gw_ventana/common.c

index a20190eef080fb93148faa3cf0e298727f51e229..7610381184eafd627fae43130da0c50e2389e123 100644 (file)
@@ -760,7 +760,7 @@ void setup_board_gpio(int board, struct ventana_board_info *info)
                                               ctrl);
                        gpio_requestf(cfg->gpio_param, "dio%d", i);
                        gpio_direction_input(cfg->gpio_param);
-               } else if (hwconfig_subarg_cmp("dio2", "mode", "pwm") &&
+               } else if (hwconfig_subarg_cmp(arg, "mode", "pwm") &&
                           cfg->pwm_padmux) {
                        if (!quiet)
                                printf("DIO%d:  pwm%d\n", i, cfg->pwm_param);