diff options
author | Alex Chiang <achiang@hp.com> | 2009-05-18 21:02:38 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-06-11 15:04:19 -0400 |
commit | af4c5f985afd8d4cfdf402aaa03677f2cb96e37c (patch) | |
tree | f324170ae00f023681e55b0522095ab97b8037fa /drivers/pci/remove.c | |
parent | 57fbf52c86addd8e25d1975fac0d59d982d1f6ec (diff) |
PCI: eliminate redundant pci_stop_dev() call from pci_destroy_dev()
We always call pci_stop_bus_device before calling pci_destroy_dev.
Since pci_stop_bus_device calls pci_stop_dev, there is no need
for pci_destroy_dev to repeat the call.
Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/remove.c')
-rw-r--r-- | drivers/pci/remove.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pci/remove.c b/drivers/pci/remove.c index 86503c14ce7e..176615e7231f 100644 --- a/drivers/pci/remove.c +++ b/drivers/pci/remove.c | |||
@@ -32,8 +32,6 @@ static void pci_stop_dev(struct pci_dev *dev) | |||
32 | 32 | ||
33 | static void pci_destroy_dev(struct pci_dev *dev) | 33 | static void pci_destroy_dev(struct pci_dev *dev) |
34 | { | 34 | { |
35 | pci_stop_dev(dev); | ||
36 | |||
37 | /* Remove the device from the device lists, and prevent any further | 35 | /* Remove the device from the device lists, and prevent any further |
38 | * list accesses from this device */ | 36 | * list accesses from this device */ |
39 | down_write(&pci_bus_sem); | 37 | down_write(&pci_bus_sem); |