diff options
Diffstat (limited to 'drivers/pci/bus.c')
-rw-r--r-- | drivers/pci/bus.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c index 628ea20a8841..7f0af0e9b826 100644 --- a/drivers/pci/bus.c +++ b/drivers/pci/bus.c | |||
@@ -56,7 +56,7 @@ void pci_bus_remove_resources(struct pci_bus *bus) | |||
56 | int i; | 56 | int i; |
57 | 57 | ||
58 | for (i = 0; i < PCI_BRIDGE_RESOURCE_NUM; i++) | 58 | for (i = 0; i < PCI_BRIDGE_RESOURCE_NUM; i++) |
59 | bus->resource[i] = 0; | 59 | bus->resource[i] = NULL; |
60 | 60 | ||
61 | list_for_each_entry_safe(bus_res, tmp, &bus->resources, list) { | 61 | list_for_each_entry_safe(bus_res, tmp, &bus->resources, list) { |
62 | list_del(&bus_res->list); | 62 | list_del(&bus_res->list); |
@@ -240,6 +240,8 @@ void pci_enable_bridges(struct pci_bus *bus) | |||
240 | if (dev->subordinate) { | 240 | if (dev->subordinate) { |
241 | if (!pci_is_enabled(dev)) { | 241 | if (!pci_is_enabled(dev)) { |
242 | retval = pci_enable_device(dev); | 242 | retval = pci_enable_device(dev); |
243 | if (retval) | ||
244 | dev_err(&dev->dev, "Error enabling bridge (%d), continuing\n", retval); | ||
243 | pci_set_master(dev); | 245 | pci_set_master(dev); |
244 | } | 246 | } |
245 | pci_enable_bridges(dev->subordinate); | 247 | pci_enable_bridges(dev->subordinate); |