]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
usb: gadget: UMS: Invoke board specific USB cleanup interface
authorInha Song <ideal.song@samsung.com>
Tue, 3 Mar 2015 16:32:05 +0000 (17:32 +0100)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 19:47:12 +0000 (21:47 +0200)
This patch invokes board-specific USB cleanup (board_usb_cleanup)
function in the mass storage gadget

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

index 6cfee47a346b550e8496685aefbfa0a195cd66b4..03f8be21464716f346438e28899b2c8cbbc49bfa 100644 (file)
@@ -154,6 +154,7 @@ int do_usb_mass_storage(cmd_tbl_t *cmdtp, int flag,
        }
 exit:
        g_dnl_unregister();
+       board_usb_cleanup(controller_index, USB_INIT_DEVICE);
        return CMD_RET_SUCCESS;
 }