ChangeSet 1.1867.3.6, 2004/09/14 11:23:52-07:00, [EMAIL PROTECTED]

[PATCH] USB: add missing pci_disable_device for PCI-based USB HCD

From: Kenji Kaneshige <[EMAIL PROTECTED]>

This patch adds pci_disable_device() into usb_hcd_pci_remove().

If the driver decides to stop using the device, it should call
pci_disable_device() to deallocate any IRQ resources, disable PCI
bus-mastering, etc.

Signed-off-by: Kenji Kaneshige <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>


 drivers/usb/core/hcd-pci.c |    2 ++
 1 files changed, 2 insertions(+)


diff -Nru a/drivers/usb/core/hcd-pci.c b/drivers/usb/core/hcd-pci.c
--- a/drivers/usb/core/hcd-pci.c        2004-10-19 08:13:57 -07:00
+++ b/drivers/usb/core/hcd-pci.c        2004-10-19 08:13:57 -07:00
@@ -260,6 +260,8 @@
        }
 
        usb_deregister_bus (&hcd->self);
+
+       pci_disable_device(dev);
 }
 EXPORT_SYMBOL (usb_hcd_pci_remove);
 



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to