From: Tim Harvey Date: Tue, 24 May 2016 18:03:54 +0000 (-0700) Subject: imx: ventana: fix invalid dio configuration for pwm mode X-Git-Tag: v2016.07-rc2~49^2~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=83e00f193e766337254c490c2b28118b75cc575a;p=u-boot imx: ventana: fix invalid dio configuration for pwm mode Signed-off-by: Tim Harvey --- diff --git a/board/gateworks/gw_ventana/common.c b/board/gateworks/gw_ventana/common.c index a20190eef0..7610381184 100644 --- a/board/gateworks/gw_ventana/common.c +++ b/board/gateworks/gw_ventana/common.c @@ -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);