aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/remove.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/remove.c')
-rw-r--r--drivers/pci/remove.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/pci/remove.c b/drivers/pci/remove.c
index 05c9ad2a7f8b..ec4a82ba29a8 100644
--- a/drivers/pci/remove.c
+++ b/drivers/pci/remove.c
@@ -78,10 +78,8 @@ void pci_remove_bus(struct pci_bus *pci_bus)
78 list_del(&pci_bus->node); 78 list_del(&pci_bus->node);
79 up_write(&pci_bus_sem); 79 up_write(&pci_bus_sem);
80 pci_remove_legacy_files(pci_bus); 80 pci_remove_legacy_files(pci_bus);
81 class_device_remove_file(&pci_bus->class_dev, 81 device_remove_file(&pci_bus->dev, &dev_attr_cpuaffinity);
82 &class_device_attr_cpuaffinity); 82 device_unregister(&pci_bus->dev);
83 sysfs_remove_link(&pci_bus->class_dev.kobj, "bridge");
84 class_device_unregister(&pci_bus->class_dev);
85} 83}
86EXPORT_SYMBOL(pci_remove_bus); 84EXPORT_SYMBOL(pci_remove_bus);
87 85