android_kernel_google_msm/drivers/pci
Yinghai Lu bded67cc51 PCI: Convert pcibios_resource_to_bus() to take a pci_bus, not a pci_dev
commit fc2798502f upstream.

These interfaces:

  pcibios_resource_to_bus(struct pci_dev *dev, *bus_region, *resource)
  pcibios_bus_to_resource(struct pci_dev *dev, *resource, *bus_region)

took a pci_dev, but they really depend only on the pci_bus.  And we want to
use them in resource allocation paths where we have the bus but not a
device, so this patch converts them to take the pci_bus instead of the
pci_dev:

  pcibios_resource_to_bus(struct pci_bus *bus, *bus_region, *resource)
  pcibios_bus_to_resource(struct pci_bus *bus, *resource, *bus_region)

In fact, with standard PCI-PCI bridges, they only depend on the host
bridge, because that's the only place address translation occurs, but
we aren't going that far yet.

[bhelgaas: changelog]
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Dirk Behme <dirk.behme@gmail.com>
[lizf: Backported to 3.4:
 - make changes to pci_host_bridge() instead of find_pci_root_bus()
 - adjust context]
Signed-off-by: Zefan Li <lizefan@huawei.com>
2015-06-19 11:40:34 +08:00
..
hotplug PCI: pciehp: Prevent NULL dereference during probe 2015-02-02 17:04:37 +08:00
pcie PCI/ASPM: Don't touch ASPM if forcibly disabled 2014-06-07 16:02:15 -07:00
.gitignore
access.c
ats.c
bus.c
hotplug-pci.c
hotplug.c PCI: Generate uppercase hex for modalias var in uevent 2015-06-19 11:40:11 +08:00
htirq.c
ioapic.c
iov.c
irq.c
Kconfig
Makefile
msi.c
msi.h
of.c
pci-acpi.c
pci-driver.c PCI/PM: Clear state_saved during suspend 2013-11-20 10:43:19 -08:00
pci-label.c
pci-stub.c
pci-sysfs.c PCI: Generate uppercase hex for modalias interface class 2015-02-02 17:04:38 +08:00
pci.c PCI: Fix incorrect vgaarb conditional in WARN_ON() 2014-07-06 18:49:19 -07:00
pci.h
probe.c PCI: Convert pcibios_resource_to_bus() to take a pci_bus, not a pci_dev 2015-06-19 11:40:34 +08:00
proc.c
quirks.c PCI: Convert pcibios_resource_to_bus() to take a pci_bus, not a pci_dev 2015-06-19 11:40:34 +08:00
remove.c
rom.c PCI: Convert pcibios_resource_to_bus() to take a pci_bus, not a pci_dev 2015-06-19 11:40:34 +08:00
search.c
setup-bus.c PCI: Convert pcibios_resource_to_bus() to take a pci_bus, not a pci_dev 2015-06-19 11:40:34 +08:00
setup-irq.c
setup-res.c PCI: Convert pcibios_resource_to_bus() to take a pci_bus, not a pci_dev 2015-06-19 11:40:34 +08:00
slot.c
syscall.c
vpd.c
xen-pcifront.c