Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32998
b: refs/heads/master
c: 96278d2
h: refs/heads/master
v: v3
  • Loading branch information
Segher Boessenkool authored and Paul Mackerras committed Jul 28, 2006
1 parent fdd1721 commit 8572875
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 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: d319a03bf87209b3914fdf2ede88a2161123b3eb
refs/heads/master: 96278d21000568a9261f016e8b2569a95a2d4c9e
15 changes: 11 additions & 4 deletions trunk/arch/powerpc/platforms/maple/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,17 @@ static void __init maple_init_IRQ(void)
* in Maple device-tree where the type of the controller is
* open-pic and not interrupt-controller
*/
for_each_node_by_type(np, "open-pic") {
mpic_node = np;
break;
}

for_each_node_by_type(np, "interrupt-controller")
if (device_is_compatible(np, "open-pic")) {
mpic_node = np;
break;
}
if (mpic_node == NULL)
for_each_node_by_type(np, "open-pic") {
mpic_node = np;
break;
}
if (mpic_node == NULL) {
printk(KERN_ERR
"Failed to locate the MPIC interrupt controller\n");
Expand Down

0 comments on commit 8572875

Please sign in to comment.