]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: add pci_bus_for_each_resource(), remove direct bus->resource[] refs
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Tue, 23 Feb 2010 17:24:31 +0000 (10:24 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 23 Feb 2010 17:43:31 +0000 (09:43 -0800)
commit5a60217c6a51fc093ba7647de7455c820cc7c443
tree6d167d73fb2cf5bb457b0b19145fcbf81cf441ef
parent91991fd8591733ca78a923d935eb62485fb23cbf
PCI: add pci_bus_for_each_resource(), remove direct bus->resource[] refs

No functional change; this converts loops that iterate from 0 to
PCI_BUS_NUM_RESOURCES through pci_bus resource[] table to use the
pci_bus_for_each_resource() iterator instead.

This doesn't change the way resources are stored; it merely removes
dependencies on the fact that they're in a table.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
arch/ia64/pci/pci.c
arch/mn10300/unit-asb2305/pci.c
arch/powerpc/kernel/pci-common.c
arch/powerpc/platforms/fsl_uli1575.c
drivers/pci/bus.c
drivers/pci/hotplug/shpchp_sysfs.c
drivers/pci/pci.c
drivers/pci/setup-bus.c
drivers/pcmcia/rsrc_nonstatic.c
drivers/pcmcia/yenta_socket.c
include/linux/pci.h