]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/cmd_dfu.c
dfu: Only perform DFU board_usb_init() for TRATS
[people/ms/u-boot.git] / common / cmd_dfu.c
index 01d6b3a2d66b6a4780f8a479ff41ffd2a5bd601b..327c738af795d250d3a824349cad4cdac84454b9 100644 (file)
@@ -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())