]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/platforms/82xx/mpc8272_ads.c
[POWERPC] 82xx and embedded6xx: Use machine_*_initcall() hooks in platform code
[linux-2.6-omap-h63xx.git] / arch / powerpc / platforms / 82xx / mpc8272_ads.c
index fd83440eb287db33eb72b97e334bb38f7c424e6b..3fce6b375dbc5f1d709701281987af8a2f483647 100644 (file)
@@ -165,14 +165,11 @@ static struct of_device_id __initdata of_bus_ids[] = {
 
 static int __init declare_of_platform_devices(void)
 {
-       if (!machine_is(mpc8272_ads))
-               return 0;
-
        /* Publish the QE devices */
        of_platform_bus_probe(NULL, of_bus_ids, NULL);
        return 0;
 }
-device_initcall(declare_of_platform_devices);
+machine_device_initcall(mpc8272_ads, declare_of_platform_devices);
 
 /*
  * Called very early, device-tree isn't unflattened