powerpc: Move 32-bit probe() machine to later in the boot process
[cascardo/linux.git] / arch / powerpc / platforms / 8xx / adder875.c
index 61cae4c..333dece 100644 (file)
@@ -88,8 +88,7 @@ static void __init adder875_setup(void)
 
 static int __init adder875_probe(void)
 {
-       unsigned long root = of_get_flat_dt_root();
-       return of_flat_dt_is_compatible(root, "analogue-and-micro,adder875");
+       return of_machine_is_compatible("analogue-and-micro,adder875");
 }
 
 static const struct of_device_id of_bus_ids[] __initconst = {