Yinghai Lu fc2798502f PCI: Convert pcibios_resource_to_bus() to take a pci_bus, not a pci_dev
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>
2013-12-21 10:06:10 -07:00
..
2013-02-17 23:36:56 -05:00
2012-05-11 19:27:46 -07:00
2012-07-26 16:46:15 -07:00
2012-03-28 16:36:34 +02:00
2013-04-09 14:13:32 -04:00
2012-05-27 23:52:44 -07:00
2012-05-14 14:05:09 -07:00
2013-02-20 13:36:50 -08:00
2013-11-12 15:22:34 -08:00
2013-10-02 20:02:35 -04:00
2013-11-13 12:09:05 +09:00
2012-08-18 23:26:19 -07:00
2013-02-17 23:36:56 -05:00
2013-06-13 22:12:14 +01:00
2012-03-28 18:30:03 +01:00
2013-07-31 19:10:03 -07:00
2013-02-14 09:21:16 -05:00