USB: OMAP: OHCI: hc_driver's stop method should call ohci_stop
authorAnand Gadiyar <[email protected]>
Tue, 14 Jul 2009 11:11:00 +0000 (16:41 +0530)
committerGreg Kroah-Hartman <[email protected]>
Tue, 28 Jul 2009 21:31:09 +0000 (14:31 -0700)
OMAP: OHCI: hc_driver's stop method should call ohci_stop

Without this, the ohci-omap driver will not cleanup the debugfs
nodes when the driver is unloaded. So the next insmod will fail,
if CONFIG_DEBUG_FS and CONFIG_USB_DEBUG are both selected.

Reported-by: vikram pandita <[email protected]>
Cc: David Brownell <[email protected]>
Signed-off-by: Anand Gadiyar <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/host/ohci-omap.c

index f3aaba35e912fba4e021e3a6fcf7dd1c22d1153f..83cbecd2a1ed7177029d8f52b7a512b959f9e2b1 100644 (file)
@@ -282,6 +282,7 @@ static int ohci_omap_init(struct usb_hcd *hcd)
 static void ohci_omap_stop(struct usb_hcd *hcd)
 {
        dev_dbg(hcd->self.controller, "stopping USB Controller\n");
+       ohci_stop(hcd);
        omap_ohci_clock_power(0);
 }