From: Benjamin Herrenschmidt Date: Tue, 5 Jul 2016 05:04:03 +0000 (+1000) Subject: powerpc/85xx/mpc85xx_ds: Don't use the flat device-tree after boot X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5b0f9f83684dff40014ce1d3c09a6cad749d351f;p=linux-beck.git powerpc/85xx/mpc85xx_ds: 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_ds.c b/arch/powerpc/platforms/85xx/mpc85xx_ds.c index f858306dba6a..64a7e8c16839 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_ds.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_ds.c @@ -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 |