]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
powerpc/pci: Clean up direct access to sysdata by powermac platforms
authorKumar Gala <galak@kernel.crashing.org>
Thu, 30 Apr 2009 03:10:13 +0000 (03:10 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 21 May 2009 05:44:23 +0000 (15:44 +1000)
We shouldn't directly access sysdata to get the device node but call
pci_bus_to_OF_node() for this purpose.

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

index 45936c9ed0ec5a1db19ee11d84facdcd85412740..86f69a4eb49bfc669012b2681500fd5f0c29e981 100644 (file)
@@ -655,7 +655,7 @@ static int __init pmac_probe(void)
 /* Move that to pci.c */
 static int pmac_pci_probe_mode(struct pci_bus *bus)
 {
-       struct device_node *node = bus->sysdata;
+       struct device_node *node = pci_bus_to_OF_node(bus);
 
        /* We need to use normal PCI probing for the AGP bus,
         * since the device for the AGP bridge isn't in the tree.