From: Tim Harvey Date: Mon, 13 Mar 2017 15:51:06 +0000 (-0700) Subject: imx: ventana: fix hwconfig X-Git-Tag: v2017.05-rc1~49^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=db1964cad7b7c72a5bb7a44372cde8c7e9d05d8f;p=u-boot imx: ventana: fix hwconfig Signed-off-by: Tim Harvey Reviewed-by: Stefano Babic --- diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c index ba648f5e25..22a3c8e607 100644 --- a/board/gateworks/gw_ventana/gw_ventana.c +++ b/board/gateworks/gw_ventana/gw_ventana.c @@ -739,7 +739,7 @@ int misc_init_r(void) /* Set a non-initialized hwconfig based on board configuration */ if (!strcmp(getenv("hwconfig"), "_UNKNOWN_")) { - sprintf(buf, "hwconfig="); + buf[0] = 0; if (gpio_cfg[board_type].rs232_en) strcat(buf, "rs232;"); for (i = 0; i < gpio_cfg[board_type].dio_num; i++) {