powerpc/85xx/ge_imp3a: Don't use the flat device-tree after boot
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 5 Jul 2016 05:04:02 +0000 (15:04 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Jul 2016 08:15:36 +0000 (18:15 +1000)
ge_imp3a_pic_init() is called way beyond the unflattening of
the tree, it shouldn't be using of_flat_dt_*

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/85xx/ge_imp3a.c

index 11790e074c8a6afd6d513d89617ed25f6771240a..55eefef0c0c736133e95c2a07ec65140c4a1d4be 100644 (file)
@@ -47,9 +47,8 @@ void __init ge_imp3a_pic_init(void)
        struct mpic *mpic;
        struct device_node *np;
        struct device_node *cascade_node = NULL;
-       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 |