diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2011-10-28 18:26:36 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2012-01-06 15:10:59 -0500 |
commit | 8d88a432f497635d4330b234eb6bceeb4f0a0bc4 (patch) | |
tree | e1e7ed4fd3741b4f047cb8a5943d21bae304aed9 /arch/microblaze | |
parent | e30f99222fd7b701ba7bc564722bb284ab2b2317 (diff) |
microblaze/PCI: fix pci_bus_for_each_resource() usage
The pci_bus_for_each_resource() iterator sets "res" itself, so there's
no need to look it up in the bus->resource[] table.
Logically part of 89a74ecccd and 8a66da71fa.
CC: Michal Simek <monstr@monstr.eu>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/pci/pci-common.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c index 52b643dd31b9..a720f664073a 100644 --- a/arch/microblaze/pci/pci-common.c +++ b/arch/microblaze/pci/pci-common.c | |||
@@ -1024,7 +1024,6 @@ static void __devinit pcibios_fixup_bridge(struct pci_bus *bus) | |||
1024 | struct pci_dev *dev = bus->self; | 1024 | struct pci_dev *dev = bus->self; |
1025 | 1025 | ||
1026 | pci_bus_for_each_resource(bus, res, i) { | 1026 | pci_bus_for_each_resource(bus, res, i) { |
1027 | res = bus->resource[i]; | ||
1028 | if (!res) | 1027 | if (!res) |
1029 | continue; | 1028 | continue; |
1030 | if (!res->flags) | 1029 | if (!res->flags) |
@@ -1224,7 +1223,6 @@ void pcibios_allocate_bus_resources(struct pci_bus *bus) | |||
1224 | pci_domain_nr(bus), bus->number); | 1223 | pci_domain_nr(bus), bus->number); |
1225 | 1224 | ||
1226 | pci_bus_for_each_resource(bus, res, i) { | 1225 | pci_bus_for_each_resource(bus, res, i) { |
1227 | res = bus->resource[i]; | ||
1228 | if (!res || !res->flags | 1226 | if (!res || !res->flags |
1229 | || res->start > res->end || res->parent) | 1227 | || res->start > res->end || res->parent) |
1230 | continue; | 1228 | continue; |