aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/40x
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@linux.vnet.ibm.com>2007-12-24 11:42:02 -0500
committerJosh Boyer <jwboyer@linux.vnet.ibm.com>2007-12-24 11:42:02 -0500
commit3f8c5c3b4d07fa24e7081a54798ddfab7360a102 (patch)
tree3bcd0754918c06ed8d532b09f1135a1b7316691c /arch/powerpc/platforms/40x
parent9e0fd5f06cbdb3bb47ce54bdbfa43257e6b2b789 (diff)
[POWERPC] 4xx: Use machine_device_initcall for bus probe
Some machine_xx_initcall macros were recently added that check for the machine type before calling the function. This converts the 4xx platforms to use those for bus probing. Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Diffstat (limited to 'arch/powerpc/platforms/40x')
-rw-r--r--arch/powerpc/platforms/40x/ep405.c5
-rw-r--r--arch/powerpc/platforms/40x/kilauea.c5
-rw-r--r--arch/powerpc/platforms/40x/makalu.c5
-rw-r--r--arch/powerpc/platforms/40x/virtex.c5
-rw-r--r--arch/powerpc/platforms/40x/walnut.c5
5 files changed, 5 insertions, 20 deletions
diff --git a/arch/powerpc/platforms/40x/ep405.c b/arch/powerpc/platforms/40x/ep405.c
index 8f73b6222e8b..13d1345026da 100644
--- a/arch/powerpc/platforms/40x/ep405.c
+++ b/arch/powerpc/platforms/40x/ep405.c
@@ -57,14 +57,11 @@ static __initdata struct of_device_id ep405_of_bus[] = {
57 57
58static int __init ep405_device_probe(void) 58static int __init ep405_device_probe(void)
59{ 59{
60 if (!machine_is(ep405))
61 return 0;
62
63 of_platform_bus_probe(NULL, ep405_of_bus, NULL); 60 of_platform_bus_probe(NULL, ep405_of_bus, NULL);
64 61
65 return 0; 62 return 0;
66} 63}
67device_initcall(ep405_device_probe); 64machine_device_initcall(ep405, ep405_device_probe);
68 65
69static void __init ep405_init_bcsr(void) 66static void __init ep405_init_bcsr(void)
70{ 67{
diff --git a/arch/powerpc/platforms/40x/kilauea.c b/arch/powerpc/platforms/40x/kilauea.c
index a23368042e67..f9206a7fede0 100644
--- a/arch/powerpc/platforms/40x/kilauea.c
+++ b/arch/powerpc/platforms/40x/kilauea.c
@@ -30,14 +30,11 @@ static __initdata struct of_device_id kilauea_of_bus[] = {
30 30
31static int __init kilauea_device_probe(void) 31static int __init kilauea_device_probe(void)
32{ 32{
33 if (!machine_is(kilauea))
34 return 0;
35
36 of_platform_bus_probe(NULL, kilauea_of_bus, NULL); 33 of_platform_bus_probe(NULL, kilauea_of_bus, NULL);
37 34
38 return 0; 35 return 0;
39} 36}
40device_initcall(kilauea_device_probe); 37machine_device_initcall(kilauea, kilauea_device_probe);
41 38
42static int __init kilauea_probe(void) 39static int __init kilauea_probe(void)
43{ 40{
diff --git a/arch/powerpc/platforms/40x/makalu.c b/arch/powerpc/platforms/40x/makalu.c
index 68bad7764522..4e4df72fc9cd 100644
--- a/arch/powerpc/platforms/40x/makalu.c
+++ b/arch/powerpc/platforms/40x/makalu.c
@@ -30,14 +30,11 @@ static __initdata struct of_device_id makalu_of_bus[] = {
30 30
31static int __init makalu_device_probe(void) 31static int __init makalu_device_probe(void)
32{ 32{
33 if (!machine_is(makalu))
34 return 0;
35
36 of_platform_bus_probe(NULL, makalu_of_bus, NULL); 33 of_platform_bus_probe(NULL, makalu_of_bus, NULL);
37 34
38 return 0; 35 return 0;
39} 36}
40device_initcall(makalu_device_probe); 37machine_device_initcall(makalu, makalu_device_probe);
41 38
42static int __init makalu_probe(void) 39static int __init makalu_probe(void)
43{ 40{
diff --git a/arch/powerpc/platforms/40x/virtex.c b/arch/powerpc/platforms/40x/virtex.c
index 14bbc328170f..43fcc8e9f7d0 100644
--- a/arch/powerpc/platforms/40x/virtex.c
+++ b/arch/powerpc/platforms/40x/virtex.c
@@ -17,14 +17,11 @@
17 17
18static int __init virtex_device_probe(void) 18static int __init virtex_device_probe(void)
19{ 19{
20 if (!machine_is(virtex))
21 return 0;
22
23 of_platform_bus_probe(NULL, NULL, NULL); 20 of_platform_bus_probe(NULL, NULL, NULL);
24 21
25 return 0; 22 return 0;
26} 23}
27device_initcall(virtex_device_probe); 24machine_device_initcall(virtex, virtex_device_probe);
28 25
29static int __init virtex_probe(void) 26static int __init virtex_probe(void)
30{ 27{
diff --git a/arch/powerpc/platforms/40x/walnut.c b/arch/powerpc/platforms/40x/walnut.c
index a968e88a58a7..f115b6dbf5ad 100644
--- a/arch/powerpc/platforms/40x/walnut.c
+++ b/arch/powerpc/platforms/40x/walnut.c
@@ -35,14 +35,11 @@ static __initdata struct of_device_id walnut_of_bus[] = {
35 35
36static int __init walnut_device_probe(void) 36static int __init walnut_device_probe(void)
37{ 37{
38 if (!machine_is(walnut))
39 return 0;
40
41 of_platform_bus_probe(NULL, walnut_of_bus, NULL); 38 of_platform_bus_probe(NULL, walnut_of_bus, NULL);
42 39
43 return 0; 40 return 0;
44} 41}
45device_initcall(walnut_device_probe); 42machine_device_initcall(walnut, walnut_device_probe);
46 43
47static int __init walnut_probe(void) 44static int __init walnut_probe(void)
48{ 45{