]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/powerpc/platforms/83xx/mpc834x_mds.c
[POWERPC] 83xx: convert boards to use machine_device_initcall
[mv-sheeva.git] / arch / powerpc / platforms / 83xx / mpc834x_mds.c
index 459fb7227e764ce71a539209287819b0c238181f..2b8a0a3f85573341749bdcc05fdb5b125d214d73 100644 (file)
@@ -115,13 +115,10 @@ static struct of_device_id mpc834x_ids[] = {
 
 static int __init mpc834x_declare_of_platform_devices(void)
 {
-       if (!machine_is(mpc834x_mds))
-               return 0;
-
        of_platform_bus_probe(NULL, mpc834x_ids, NULL);
        return 0;
 }
-device_initcall(mpc834x_declare_of_platform_devices);
+machine_device_initcall(mpc834x_mds, mpc834x_declare_of_platform_devices);
 
 /*
  * Called very early, MMU is off, device-tree isn't unflattened