diff options
Diffstat (limited to 'drivers/pci/bus.c')
-rw-r--r-- | drivers/pci/bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c index 68f91a252595..97a8194063b5 100644 --- a/drivers/pci/bus.c +++ b/drivers/pci/bus.c | |||
@@ -184,7 +184,7 @@ void pci_enable_bridges(struct pci_bus *bus) | |||
184 | 184 | ||
185 | list_for_each_entry(dev, &bus->devices, bus_list) { | 185 | list_for_each_entry(dev, &bus->devices, bus_list) { |
186 | if (dev->subordinate) { | 186 | if (dev->subordinate) { |
187 | if (atomic_read(&dev->enable_cnt) == 0) { | 187 | if (!pci_is_enabled(dev)) { |
188 | retval = pci_enable_device(dev); | 188 | retval = pci_enable_device(dev); |
189 | pci_set_master(dev); | 189 | pci_set_master(dev); |
190 | } | 190 | } |