From 3aba1ea5f0887c9abdfcdef11b5ca75300bc6c17 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Tue, 7 Jan 2003 00:29:23 -0800 Subject: [PATCH] PCI: properly unregister a PCI device if it is removed. This is only used by pci hotplug and cardbus systems. --- drivers/pci/hotplug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5