]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
powerpc/85xx/mpc85xx_ds: Don't use the flat device-tree after boot
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 5 Jul 2016 05:04:03 +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_ds.c

index f858306dba6aa517f3078f26cbd6b62861b3886c..64a7e8c1683955050912e830c97f3669d66ac2ab 100644 (file)
@@ -66,9 +66,7 @@ void __init mpc85xx_ds_pic_init(void)
        struct device_node *cascade_node = NULL;
        int cascade_irq;
 #endif
-       unsigned long root = of_get_flat_dt_root();
-
-       if (of_flat_dt_is_compatible(root, "fsl,MPC8572DS-CAMP")) {
+       if (of_machine_is_compatible("fsl,MPC8572DS-CAMP")) {
                mpic = mpic_alloc(NULL, 0,
                        MPIC_NO_RESET |
                        MPIC_BIG_ENDIAN |