]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] 85xx: convert sbc85* boards to use machine_device_initcall
authorKumar Gala <galak@kernel.crashing.org>
Mon, 28 Jan 2008 16:55:42 +0000 (10:55 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 28 Jan 2008 19:15:26 +0000 (13:15 -0600)
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/platforms/85xx/sbc8548.c
arch/powerpc/platforms/85xx/sbc8560.c

index de27b576c13d5afe1dcbf83d66993bc05e4dc657..488facb99fe83533fae4505b30b6dfc7ae6b3991 100644 (file)
@@ -135,13 +135,11 @@ static struct of_device_id __initdata of_bus_ids[] = {
 
 static int __init declare_of_platform_devices(void)
 {
-       if (!machine_is(sbc8548))
-               return 0;
-
        of_platform_bus_probe(NULL, of_bus_ids, NULL);
+
        return 0;
 }
-device_initcall(declare_of_platform_devices);
+machine_device_initcall(sbc8548, declare_of_platform_devices);
 
 /*
  * Called very early, device-tree isn't unflattened
index e2bc368b38d9220ba1c7dcb1c0fa51ad269b7dd5..2c580cd24e4f4e7959c4e2a65b65cbdf78eb47af 100644 (file)
@@ -222,13 +222,11 @@ static struct of_device_id __initdata of_bus_ids[] = {
 
 static int __init declare_of_platform_devices(void)
 {
-       if (!machine_is(sbc8560))
-               return 0;
-
        of_platform_bus_probe(NULL, of_bus_ids, NULL);
+
        return 0;
 }
-device_initcall(declare_of_platform_devices);
+machine_device_initcall(sbc8560, declare_of_platform_devices);
 
 /*
  * Called very early, device-tree isn't unflattened