From: Greg Kroah-Hartman Date: Tue, 7 Jan 2003 08:29:23 +0000 (-0800) Subject: PCI: properly unregister a PCI device if it is removed. X-Git-Tag: v2.5.55~61 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=3aba1ea5f0887c9abdfcdef11b5ca75300bc6c17;p=history.git PCI: properly unregister a PCI device if it is removed. This is only used by pci hotplug and cardbus systems. --- diff --git a/drivers/pci/hotplug.c b/drivers/pci/hotplug.c index 1aca6c7d187f..a483c4ff4e93 100644 --- a/drivers/pci/hotplug.c +++ b/drivers/pci/hotplug.c @@ -105,7 +105,7 @@ pci_free_resources(struct pci_dev *dev) void pci_remove_device(struct pci_dev *dev) { - put_device(&dev->dev); + device_unregister(&dev->dev); list_del(&dev->bus_list); list_del(&dev->global_list); pci_free_resources(dev);