powerpc: Move 32-bit probe() machine to later in the boot process
[sfrench/cifs-2.6.git] / arch / powerpc / platforms / 85xx / p1022_ds.c
index 371df822e88e215a34e7e1e8ccdb8162bd0f95fc..63568d68c76f8c50554f4126a8672ea20118603f 100644 (file)
@@ -555,9 +555,7 @@ machine_arch_initcall(p1022_ds, swiotlb_setup_bus_notifier);
  */
 static int __init p1022_ds_probe(void)
 {
-       unsigned long root = of_get_flat_dt_root();
-
-       return of_flat_dt_is_compatible(root, "fsl,p1022ds");
+       return of_machine_is_compatible("fsl,p1022ds");
 }
 
 define_machine(p1022_ds) {