]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
powerpc/85xx/mpc85xx_rdb: Don't use the flat device-tree after boot
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 5 Jul 2016 05:04:04 +0000 (15:04 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Jul 2016 08:15:37 +0000 (18:15 +1000)
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/85xx/mpc85xx_rdb.c

index 3f4dad133338801c96f262e017d9392128ec3ebb..761e504d22efc73117f5029163539fb0cbc09562 100644 (file)
 void __init mpc85xx_rdb_pic_init(void)
 {
        struct mpic *mpic;
-       unsigned long root = of_get_flat_dt_root();
 
 #ifdef CONFIG_QUICC_ENGINE
        struct device_node *np;
 #endif
 
-       if (of_flat_dt_is_compatible(root, "fsl,MPC85XXRDB-CAMP")) {
+       if (of_machine_is_compatible("fsl,MPC85XXRDB-CAMP")) {
                mpic = mpic_alloc(NULL, 0, MPIC_NO_RESET |
                        MPIC_BIG_ENDIAN |
                        MPIC_SINGLE_DEST_CPU,