From: Kumar Gala Date: Thu, 30 Apr 2009 03:10:13 +0000 (+0000) Subject: powerpc/pci: Clean up direct access to sysdata by powermac platforms X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=95272262aa43a85ad134c2ceeacb28e8b755ede1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git powerpc/pci: Clean up direct access to sysdata by powermac platforms 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 Signed-off-by: Benjamin Herrenschmidt --- diff --git a/arch/powerpc/platforms/powermac/setup.c b/arch/powerpc/platforms/powermac/setup.c index 45936c9ed0ec..86f69a4eb49b 100644 --- a/arch/powerpc/platforms/powermac/setup.c +++ b/arch/powerpc/platforms/powermac/setup.c @@ -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.