|
@@ -235,6 +235,8 @@ static void __init pseries_discover_pic(void)
|
|
|
|
|
|
for_each_node_by_name(np, "interrupt-controller") {
|
|
for_each_node_by_name(np, "interrupt-controller") {
|
|
typep = of_get_property(np, "compatible", NULL);
|
|
typep = of_get_property(np, "compatible", NULL);
|
|
|
|
+ if (!typep)
|
|
|
|
+ continue;
|
|
if (strstr(typep, "open-pic")) {
|
|
if (strstr(typep, "open-pic")) {
|
|
pSeries_mpic_node = of_node_get(np);
|
|
pSeries_mpic_node = of_node_get(np);
|
|
ppc_md.init_IRQ = pseries_mpic_init_IRQ;
|
|
ppc_md.init_IRQ = pseries_mpic_init_IRQ;
|