Commit 3aba1ea5 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

PCI: properly unregister a PCI device if it is removed.

This is only used by pci hotplug and cardbus systems.
parent bf01b5b6
...@@ -105,7 +105,7 @@ pci_free_resources(struct pci_dev *dev) ...@@ -105,7 +105,7 @@ pci_free_resources(struct pci_dev *dev)
void void
pci_remove_device(struct pci_dev *dev) pci_remove_device(struct pci_dev *dev)
{ {
put_device(&dev->dev); device_unregister(&dev->dev);
list_del(&dev->bus_list); list_del(&dev->bus_list);
list_del(&dev->global_list); list_del(&dev->global_list);
pci_free_resources(dev); pci_free_resources(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment