From: Benjamin Herrenschmidt Date: Tue, 5 Jul 2016 05:04:04 +0000 (+1000) Subject: powerpc/85xx/mpc85xx_rdb: Don't use the flat device-tree after boot X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=acd3578ed9100565ef1b39685ec0e75e5124a0d6;p=linux-beck.git powerpc/85xx/mpc85xx_rdb: Don't use the flat device-tree after boot Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c index 3f4dad133338..761e504d22ef 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c @@ -47,13 +47,12 @@ 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,