Skip to content

Commit

Permalink
dfu: Only perform DFU board_usb_init() for TRATS
Browse files Browse the repository at this point in the history
USB initialization shouldn't happen for all the boards.

Signed-off-by: Pantelis Antoniou <[email protected]>
  • Loading branch information
pantoniou authored and Marek Vasut committed Mar 16, 2013
1 parent 2982837 commit ea3e212
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/cmd_dfu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit ea3e212

Please sign in to comment.