diff options
author | Tom Rini <trini@ti.com> | 2013-03-18 15:33:47 -0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2013-03-18 15:33:47 -0400 |
commit | 3c47f2f4871c345c20b9d986b11fec550ef6cc9f (patch) | |
tree | 267c6eedacaa02cc8c7096f67bedb9d17fe3e21d /common/cmd_dfu.c | |
parent | 0ce033d2582129243aca10d3072a221386bbba44 (diff) | |
parent | ae003d057077d792c1f2131753a7596c94e0bba4 (diff) | |
download | u-boot-imx-3c47f2f4871c345c20b9d986b11fec550ef6cc9f.zip u-boot-imx-3c47f2f4871c345c20b9d986b11fec550ef6cc9f.tar.gz u-boot-imx-3c47f2f4871c345c20b9d986b11fec550ef6cc9f.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-usb
Diffstat (limited to 'common/cmd_dfu.c')
-rw-r--r-- | common/cmd_dfu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index 01d6b3a..83ef324 100644 --- a/common/cmd_dfu.c +++ b/common/cmd_dfu.c @@ -50,12 +50,15 @@ static int do_dfu(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) if (ret) return CMD_RET_FAILURE; - if (strcmp(argv[3], "list") == 0) { + if (argc > 3 && strcmp(argv[3], "list") == 0) { dfu_show_entities(); goto done; } +#ifdef CONFIG_TRATS board_usb_init(); +#endif + g_dnl_register(s); while (1) { if (ctrlc()) |