]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: host: xhci-omap: invoke board_usb_cleanup in xhci_hcd_stop
authorKishon Vijay Abraham I <kishon@ti.com>
Wed, 19 Aug 2015 08:19:47 +0000 (13:49 +0530)
committerMarek Vasut <marex@denx.de>
Wed, 19 Aug 2015 20:30:31 +0000 (22:30 +0200)
xhci omap driver has board_usb_init in xhci_hcd_init but doesn't have
the corresponding cleanup function in xhci_hcd_stop.

Fix it here by invoking board_usb_cleanup() in xhci_hcd_stop().

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Acked-by: Marek Vasut <marex@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Lukasz Majewski <l.majewski@samsung.com>
drivers/usb/host/xhci-omap.c

index 3a5520838447d75102e383ffb771e5ab0cab6213..104e7a7282cf0b7787afac90ab5f8d1a7c55bfe2 100644 (file)
@@ -96,4 +96,5 @@ void xhci_hcd_stop(int index)
        struct omap_xhci *ctx = &omap;
 
        omap_xhci_core_exit(ctx);
+       board_usb_cleanup(index, USB_INIT_HOST);
 }