usb: gadget: thor: Invoke board specific USB cleanup interface
authorInha Song <ideal.song@samsung.com>
Tue, 3 Mar 2015 16:32:06 +0000 (17:32 +0100)
committerChanho Park <chanho61.park@samsung.com>
Fri, 24 Jul 2015 07:30:12 +0000 (16:30 +0900)
This patch invokes board-specific USB cleanup (board_usb_cleanup)
function in the thor gadget.

Signed-off-by: Inha Song <ideal.song@samsung.com>
Conflicts:
common/cmd_thordown.c

common/cmd_thordown.c

index 2dd750928e41ad39c2a924b38140c898f5c114e7..2d4f58aeb32b4d6b689a53b8d7b582c4449275e4 100644 (file)
@@ -57,6 +57,8 @@ int do_thor_down(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 exit:
        g_dnl_unregister();
+       board_usb_cleanup(controller_index, USB_INIT_DEVICE);
+done:
        dfu_free_entities();
 
        return ret;