powerpc: Move 32-bit probe() machine to later in the boot process
[cascardo/linux.git] / arch / powerpc / platforms / 83xx / mpc836x_mds.c
index dd70b85..dacf4c2 100644 (file)
@@ -209,9 +209,7 @@ machine_arch_initcall(mpc836x_mds, mpc836x_usb_cfg);
  */
 static int __init mpc836x_mds_probe(void)
 {
-        unsigned long root = of_get_flat_dt_root();
-
-        return of_flat_dt_is_compatible(root, "MPC836xMDS");
+       return of_machine_is_compatible("MPC836xMDS");
 }
 
 define_machine(mpc836x_mds) {