From: Pantelis Antoniou Date: Fri, 30 Nov 2012 08:01:07 +0000 (+0000) Subject: dfu: Only perform DFU board_usb_init() for TRATS X-Git-Tag: v2013.04-rc2~23^2~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ea3e21226fdae4bbcb88e2de13480d122f617d64;p=u-boot dfu: Only perform DFU board_usb_init() for TRATS USB initialization shouldn't happen for all the boards. Signed-off-by: Pantelis Antoniou --- diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index 01d6b3a2d6..327c738af7 100644 --- a/common/cmd_dfu.c +++ b/common/cmd_dfu.c @@ -55,7 +55,10 @@ static int do_dfu(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) goto done; } +#ifdef CONFIG_TRATS board_usb_init(); +#endif + g_dnl_register(s); while (1) { if (ctrlc())