Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cascardo/linux.git] / arch / powerpc / platforms / 85xx / qemu_e500.c
index 8ad2fe6..50d7458 100644 (file)
@@ -62,9 +62,7 @@ static void __init qemu_e500_setup_arch(void)
  */
 static int __init qemu_e500_probe(void)
 {
-       unsigned long root = of_get_flat_dt_root();
-
-       return !!of_flat_dt_is_compatible(root, "fsl,qemu-e500");
+       return !!of_machine_is_compatible("fsl,qemu-e500");
 }
 
 machine_arch_initcall(qemu_e500, mpc85xx_common_publish_devices);