Skip to content

Commit

Permalink
powerpc/pci: Clean up direct access to sysdata by powermac platforms
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kumar Gala authored and Benjamin Herrenschmidt committed May 21, 2009
1 parent bccd6f7 commit 9527226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/powermac/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9527226

Please sign in to comment.