Messages in this thread Patch in this message | | | Date | Mon, 13 Sep 2004 14:26:53 +0900 | From | Kenji Kaneshige <> | Subject | [PATCH] add missing pci_disable_device for PCI-based USB HCD |
| |
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 <kaneshige.kenji@jp.fujitsu.com>
---
linux-2.6.9-rc1-kanesige/drivers/usb/core/hcd-pci.c | 2 ++ 1 files changed, 2 insertions(+)
diff -puN drivers/usb/core/hcd-pci.c~add_missing_pci_disable_device_usb_hcd drivers/usb/core/hcd-pci.c --- linux-2.6.9-rc1/drivers/usb/core/hcd-pci.c~add_missing_pci_disable_device_usb_hcd 2004-09-13 12:41:26.061976310 +0900 +++ linux-2.6.9-rc1-kanesige/drivers/usb/core/hcd-pci.c 2004-09-13 12:41:26.063929446 +0900 @@ -260,6 +260,8 @@ void usb_hcd_pci_remove (struct pci_dev } usb_deregister_bus (&hcd->self); + + pci_disable_device(dev); } EXPORT_SYMBOL (usb_hcd_pci_remove); _
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |