[7/9] powerpc/pci: clean up direct access to sysdata by powermac platforms

Submitted by Kumar Gala on April 30, 2009, 1:10 p.m.

Details

Message ID 1241097015-11208-7-git-send-email-galak@kernel.crashing.org
State Accepted, archived
Commit 95272262aa43a85ad134c2ceeacb28e8b755ede1
Delegated to: Benjamin Herrenschmidt
Headers show

Commit Message

Kumar Gala April 30, 2009, 1:10 p.m.
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>
---
 arch/powerpc/platforms/powermac/setup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

diff --git a/arch/powerpc/platforms/powermac/setup.c b/arch/powerpc/platforms/powermac/setup.c
index 45936c9..86f69a4 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.