]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/powerpc/platforms/85xx/sbc8560.c
powerpc/mpic: Search for open-pic device-tree node if NULL
[karo-tx-linux.git] / arch / powerpc / platforms / 85xx / sbc8560.c
index 97f00dec0d93610ae7ab21351abe7ec1ecb118f9..7e6d7e5b8a412a16280e1919742f5adc2127c9bd 100644 (file)
 
 static void __init sbc8560_pic_init(void)
 {
-       struct mpic *mpic;
-       struct device_node *np = NULL;
-
-       np = of_find_node_by_type(np, "open-pic");
-       if (!np) {
-               printk(KERN_ERR "Could not find open-pic node\n");
-               return;
-       }
-
-       mpic = mpic_alloc(np, 0,
+       struct mpic *mpic = mpic_alloc(NULL, 0,
                        MPIC_PRIMARY | MPIC_WANTS_RESET | MPIC_BIG_ENDIAN,
                        0, 256, " OpenPIC  ");
        BUG_ON(mpic == NULL);
-       of_node_put(np);
-
        mpic_init(mpic);
 
        mpc85xx_cpm2_pic_init();