[POWERPC] iSeries: eliminate pci_dn bussubno
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 21 Dec 2007 04:50:09 +0000 (15:50 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 17 Jan 2008 03:57:05 +0000 (14:57 +1100)
commit885b86e4e7ccc360f8ce4d7fb10dfdfb6e3c8650
tree306b7438cdce8479397ee1ae8c9f244a07f9d9f7
parentb6ed42a794e1ca51fb46ff2bdc562315c46dd9a8
[POWERPC] iSeries: eliminate pci_dn bussubno

xlate_iomm_address() really wants the ds_addr to pass to the HV, so store
that value (instead of the BAR number) when we allocate the device bars.
This is not a fast path, so we can look up the device_node property
there instead of using the bussubno field of the pci_dn.

The other user of iseries_ds_addr() was already scanning the device tree,
so looking up a property will not slow it down any more.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/pci_dn.c
arch/powerpc/platforms/iseries/pci.c
include/asm-powerpc/pci-bridge.h