]> git.hungrycats.org Git - linux/commitdiff
PCI: properly unregister a PCI device if it is removed.
authorGreg Kroah-Hartman <greg@kroah.com>
Tue, 7 Jan 2003 08:29:23 +0000 (00:29 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 7 Jan 2003 08:29:23 +0000 (00:29 -0800)
This is only used by pci hotplug and cardbus systems.

drivers/pci/hotplug.c

index 1aca6c7d187fdcc1233c75505e549d0c8746a157..a483c4ff4e9335db59291072403d3413c36f00e4 100644 (file)
@@ -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);