powerpc/pci: Move hose_list and pci_address_to_pio to pci-common
authorMilton Miller <miltonm@bga.com>
Thu, 8 Jan 2009 02:19:46 +0000 (02:19 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 11 Feb 2009 05:00:07 +0000 (16:00 +1100)
commitc3bd517de67d33c44059656194e316facef181a5
tree8b61341ac8aec4d18499ce7a99d545b2912abb9a
parent6071ed0487c6ea8dcfadd9844b9b90944cd9de1e
powerpc/pci: Move hose_list and pci_address_to_pio to pci-common

move the definition of hose_list next to its hotplug spinlock.

create pcibios_io_size to encapsulate ifdef in existing pci-common
function pcibios_vaddr_is_ioport

move pci_address_to_pio to pci-common, using new pcibios_io_size, and
protect this GPL exported function against concurrent hotplug removal

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/pci-common.c
arch/powerpc/kernel/pci_32.c
arch/powerpc/kernel/pci_64.c