]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/powerpc/platforms/celleb/setup.c
[POWERPC] cell: Use machine_*_initcall() hooks in platform code
[linux-2.6-omap-h63xx.git] / arch / powerpc / platforms / celleb / setup.c
index 0f0c4680bf013071dd11ba50c13e50e73acbe0c3..f27ae1e3fb58d010f79735822cf9b297c6407e5f 100644 (file)
@@ -111,10 +111,6 @@ static struct of_device_id celleb_bus_ids[] __initdata = {
 
 static int __init celleb_publish_devices(void)
 {
-       if (!machine_is(celleb_beat) &&
-           !machine_is(celleb_native))
-               return -ENODEV;
-
        /* Publish OF platform devices for southbridge IOs */
        of_platform_bus_probe(NULL, celleb_bus_ids, NULL);
 
@@ -122,7 +118,8 @@ static int __init celleb_publish_devices(void)
 
        return 0;
 }
-device_initcall(celleb_publish_devices);
+machine_device_initcall(celleb_beat, celleb_publish_devices);
+machine_device_initcall(celleb_native, celleb_publish_devices);
 
 
 /*