powerpc/pci: Clean up direct access to sysdata by CHRP platforms
authorKumar Gala <galak@kernel.crashing.org>
Thu, 30 Apr 2009 03:10:11 +0000 (03:10 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 21 May 2009 05:44:23 +0000 (15:44 +1000)
commit8456993ead5e64f5b755df6ac298757af4ceec59
treee2542faefb194a53222a5d6fd323244e09fafb76
parentf159edaef31da2ba01511d1f7b2fe22bb048290f
powerpc/pci: Clean up direct access to sysdata by CHRP platforms

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/platforms/chrp/pci.c