diff options
Diffstat (limited to 'drivers/pci/remove.c')
-rw-r--r-- | drivers/pci/remove.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/pci/remove.c b/drivers/pci/remove.c index d3c77cbe3279..b6824833343f 100644 --- a/drivers/pci/remove.c +++ b/drivers/pci/remove.c | |||
@@ -23,10 +23,6 @@ static void pci_stop_dev(struct pci_dev *dev) | |||
23 | pci_remove_sysfs_dev_files(dev); | 23 | pci_remove_sysfs_dev_files(dev); |
24 | device_unregister(&dev->dev); | 24 | device_unregister(&dev->dev); |
25 | dev->is_added = 0; | 25 | dev->is_added = 0; |
26 | down_write(&pci_bus_sem); | ||
27 | list_del(&dev->global_list); | ||
28 | dev->global_list.next = dev->global_list.prev = NULL; | ||
29 | up_write(&pci_bus_sem); | ||
30 | } | 26 | } |
31 | } | 27 | } |
32 | 28 | ||