powerpc/pci: Clean up direct access to sysdata by indirect ops
authorKumar Gala <galak@kernel.crashing.org>
Thu, 30 Apr 2009 03:10:07 +0000 (03:10 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 21 May 2009 05:44:22 +0000 (15:44 +1000)
commit19afa40797a3b392b64bf0b30b46e62001eeb66f
tree21cfd1c6a149dd545a8168e13007afe145013861
parent60dbf4385130136847ea73657da329f8e7dbe16e
powerpc/pci: Clean up direct access to sysdata by indirect ops

We shouldn't directly access sysdata to get the pci_controller.  Instead
use pci_bus_to_host() for this purpose.  In the future we might have
sysdata be a device_node to match ppc64 and unify the code between ppc32
& ppc64.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/sysdev/indirect_pci.c