提交 96278d21 编写于 作者: S Segher Boessenkool 提交者: Paul Mackerras

[POWERPC] Fix new interrupt code (MPIC detection)

As the code comment already says, the Maple device-tree is incorrect here;
make the Linux code detect the correct thing, too.
Signed-off-by: NSegher Boessenkool <segher@kernel.crashing.org>
Acked-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 d319a03b
...@@ -221,6 +221,13 @@ static void __init maple_init_IRQ(void) ...@@ -221,6 +221,13 @@ static void __init maple_init_IRQ(void)
* in Maple device-tree where the type of the controller is * in Maple device-tree where the type of the controller is
* open-pic and not interrupt-controller * open-pic and not interrupt-controller
*/ */
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") { for_each_node_by_type(np, "open-pic") {
mpic_node = np; mpic_node = np;
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册