public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] OMAP: OHCI: hc_driver's stop method should call ohci_stop
@ 2009-07-14 11:11 Gadiyar, Anand
       [not found] ` <5A47E75E594F054BAF48C5E4FC4B92AB0305D662CF-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Gadiyar, Anand @ 2009-07-14 11:11 UTC (permalink / raw)
  To: linux-usb@vger.kernel.org
  Cc: dbrownell@users.sourceforge.net, linux-omap@vger.kernel.org

From: Anand Gadiyar <gadiyar@ti.com>

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 <vikram.pandita@ti.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
---
Not tested. I don't have any hardware that uses this driver.

 drivers/usb/host/ohci-omap.c |    1 +
 1 files changed, 1 insertion(+)

Index: linux-2.6/drivers/usb/host/ohci-omap.c
===================================================================
--- linux-2.6.orig/drivers/usb/host/ohci-omap.c
+++ linux-2.6/drivers/usb/host/ohci-omap.c
@@ -282,6 +282,7 @@ static int ohci_omap_init(struct usb_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);
 }
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-15 14:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-14 11:11 [PATCH] OMAP: OHCI: hc_driver's stop method should call ohci_stop Gadiyar, Anand
     [not found] ` <5A47E75E594F054BAF48C5E4FC4B92AB0305D662CF-/tLxBxkBPtCIQmiDNMet8wC/G2K4zDHf@public.gmane.org>
2009-07-15 14:00   ` patch usb-omap-ohci-hc_driver-s-stop-method-should-call-ohci_stop.patch added to gregkh-2.6 tree gregkh-l3A5Bk7waGM

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox