Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149648
b: refs/heads/master
c: 2f52297
h: refs/heads/master
v: v3
  • Loading branch information
Kumar Gala authored and Benjamin Herrenschmidt committed May 21, 2009
1 parent e0f416e commit ae8e499
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 95272262aa43a85ad134c2ceeacb28e8b755ede1
refs/heads/master: 2f52297665d2ebfaa24406003cf9e5a7b635f47d
10 changes: 2 additions & 8 deletions trunk/arch/powerpc/kernel/rtas_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,7 @@ static int rtas_pci_read_config(struct pci_bus *bus,
{
struct device_node *busdn, *dn;

if (bus->self)
busdn = pci_device_to_OF_node(bus->self);
else
busdn = bus->sysdata; /* must be a phb */
busdn = pci_bus_to_OF_node(bus);

/* Search only direct children of the bus */
for (dn = busdn->child; dn; dn = dn->sibling) {
Expand Down Expand Up @@ -140,10 +137,7 @@ static int rtas_pci_write_config(struct pci_bus *bus,
{
struct device_node *busdn, *dn;

if (bus->self)
busdn = pci_device_to_OF_node(bus->self);
else
busdn = bus->sysdata; /* must be a phb */
busdn = pci_bus_to_OF_node(bus);

/* Search only direct children of the bus */
for (dn = busdn->child; dn; dn = dn->sibling) {
Expand Down

0 comments on commit ae8e499

Please sign in to comment.