diff options
author | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2007-12-24 11:42:02 -0500 |
---|---|---|
committer | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2007-12-24 11:42:02 -0500 |
commit | 3f8c5c3b4d07fa24e7081a54798ddfab7360a102 (patch) | |
tree | 3bcd0754918c06ed8d532b09f1135a1b7316691c | |
parent | 9e0fd5f06cbdb3bb47ce54bdbfa43257e6b2b789 (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>
-rw-r--r-- | arch/powerpc/platforms/40x/ep405.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/40x/kilauea.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/40x/makalu.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/40x/virtex.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/40x/walnut.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/bamboo.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/ebony.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/katmai.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/rainier.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/sequoia.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/44x/taishan.c | 5 |
11 files changed, 11 insertions, 44 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 | ||
58 | static int __init ep405_device_probe(void) | 58 | static 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 | } |
67 | device_initcall(ep405_device_probe); | 64 | machine_device_initcall(ep405, ep405_device_probe); |
68 | 65 | ||
69 | static void __init ep405_init_bcsr(void) | 66 | static 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 | ||
31 | static int __init kilauea_device_probe(void) | 31 | static 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 | } |
40 | device_initcall(kilauea_device_probe); | 37 | machine_device_initcall(kilauea, kilauea_device_probe); |
41 | 38 | ||
42 | static int __init kilauea_probe(void) | 39 | static 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 | ||
31 | static int __init makalu_device_probe(void) | 31 | static 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 | } |
40 | device_initcall(makalu_device_probe); | 37 | machine_device_initcall(makalu, makalu_device_probe); |
41 | 38 | ||
42 | static int __init makalu_probe(void) | 39 | static 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 | ||
18 | static int __init virtex_device_probe(void) | 18 | static 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 | } |
27 | device_initcall(virtex_device_probe); | 24 | machine_device_initcall(virtex, virtex_device_probe); |
28 | 25 | ||
29 | static int __init virtex_probe(void) | 26 | static 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 | ||
36 | static int __init walnut_device_probe(void) | 36 | static 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 | } |
45 | device_initcall(walnut_device_probe); | 42 | machine_device_initcall(walnut, walnut_device_probe); |
46 | 43 | ||
47 | static int __init walnut_probe(void) | 44 | static int __init walnut_probe(void) |
48 | { | 45 | { |
diff --git a/arch/powerpc/platforms/44x/bamboo.c b/arch/powerpc/platforms/44x/bamboo.c index d27f758d9cb2..fb9a22a7e8d0 100644 --- a/arch/powerpc/platforms/44x/bamboo.c +++ b/arch/powerpc/platforms/44x/bamboo.c | |||
@@ -34,14 +34,11 @@ static __initdata struct of_device_id bamboo_of_bus[] = { | |||
34 | 34 | ||
35 | static int __init bamboo_device_probe(void) | 35 | static int __init bamboo_device_probe(void) |
36 | { | 36 | { |
37 | if (!machine_is(bamboo)) | ||
38 | return 0; | ||
39 | |||
40 | of_platform_bus_probe(NULL, bamboo_of_bus, NULL); | 37 | of_platform_bus_probe(NULL, bamboo_of_bus, NULL); |
41 | 38 | ||
42 | return 0; | 39 | return 0; |
43 | } | 40 | } |
44 | device_initcall(bamboo_device_probe); | 41 | machine_device_initcall(bamboo, bamboo_device_probe); |
45 | 42 | ||
46 | static int __init bamboo_probe(void) | 43 | static int __init bamboo_probe(void) |
47 | { | 44 | { |
diff --git a/arch/powerpc/platforms/44x/ebony.c b/arch/powerpc/platforms/44x/ebony.c index 767db4f9fc2c..481a016e1535 100644 --- a/arch/powerpc/platforms/44x/ebony.c +++ b/arch/powerpc/platforms/44x/ebony.c | |||
@@ -37,14 +37,11 @@ static __initdata struct of_device_id ebony_of_bus[] = { | |||
37 | 37 | ||
38 | static int __init ebony_device_probe(void) | 38 | static int __init ebony_device_probe(void) |
39 | { | 39 | { |
40 | if (!machine_is(ebony)) | ||
41 | return 0; | ||
42 | |||
43 | of_platform_bus_probe(NULL, ebony_of_bus, NULL); | 40 | of_platform_bus_probe(NULL, ebony_of_bus, NULL); |
44 | 41 | ||
45 | return 0; | 42 | return 0; |
46 | } | 43 | } |
47 | device_initcall(ebony_device_probe); | 44 | machine_device_initcall(ebony, ebony_device_probe); |
48 | 45 | ||
49 | /* | 46 | /* |
50 | * Called very early, MMU is off, device-tree isn't unflattened | 47 | * Called very early, MMU is off, device-tree isn't unflattened |
diff --git a/arch/powerpc/platforms/44x/katmai.c b/arch/powerpc/platforms/44x/katmai.c index 06aa0aa3cf0e..11134121f272 100644 --- a/arch/powerpc/platforms/44x/katmai.c +++ b/arch/powerpc/platforms/44x/katmai.c | |||
@@ -34,14 +34,11 @@ static __initdata struct of_device_id katmai_of_bus[] = { | |||
34 | 34 | ||
35 | static int __init katmai_device_probe(void) | 35 | static int __init katmai_device_probe(void) |
36 | { | 36 | { |
37 | if (!machine_is(katmai)) | ||
38 | return 0; | ||
39 | |||
40 | of_platform_bus_probe(NULL, katmai_of_bus, NULL); | 37 | of_platform_bus_probe(NULL, katmai_of_bus, NULL); |
41 | 38 | ||
42 | return 0; | 39 | return 0; |
43 | } | 40 | } |
44 | device_initcall(katmai_device_probe); | 41 | machine_device_initcall(katmai, katmai_device_probe); |
45 | 42 | ||
46 | static int __init katmai_probe(void) | 43 | static int __init katmai_probe(void) |
47 | { | 44 | { |
diff --git a/arch/powerpc/platforms/44x/rainier.c b/arch/powerpc/platforms/44x/rainier.c index 4e06039ec665..a4ce5ba8fe32 100644 --- a/arch/powerpc/platforms/44x/rainier.c +++ b/arch/powerpc/platforms/44x/rainier.c | |||
@@ -32,14 +32,11 @@ static __initdata struct of_device_id rainier_of_bus[] = { | |||
32 | 32 | ||
33 | static int __init rainier_device_probe(void) | 33 | static int __init rainier_device_probe(void) |
34 | { | 34 | { |
35 | if (!machine_is(rainier)) | ||
36 | return 0; | ||
37 | |||
38 | of_platform_bus_probe(NULL, rainier_of_bus, NULL); | 35 | of_platform_bus_probe(NULL, rainier_of_bus, NULL); |
39 | 36 | ||
40 | return 0; | 37 | return 0; |
41 | } | 38 | } |
42 | device_initcall(rainier_device_probe); | 39 | machine_device_initcall(rainier, rainier_device_probe); |
43 | 40 | ||
44 | static int __init rainier_probe(void) | 41 | static int __init rainier_probe(void) |
45 | { | 42 | { |
diff --git a/arch/powerpc/platforms/44x/sequoia.c b/arch/powerpc/platforms/44x/sequoia.c index 1326f0c68712..374f8c7fcd01 100644 --- a/arch/powerpc/platforms/44x/sequoia.c +++ b/arch/powerpc/platforms/44x/sequoia.c | |||
@@ -34,14 +34,11 @@ static __initdata struct of_device_id sequoia_of_bus[] = { | |||
34 | 34 | ||
35 | static int __init sequoia_device_probe(void) | 35 | static int __init sequoia_device_probe(void) |
36 | { | 36 | { |
37 | if (!machine_is(sequoia)) | ||
38 | return 0; | ||
39 | |||
40 | of_platform_bus_probe(NULL, sequoia_of_bus, NULL); | 37 | of_platform_bus_probe(NULL, sequoia_of_bus, NULL); |
41 | 38 | ||
42 | return 0; | 39 | return 0; |
43 | } | 40 | } |
44 | device_initcall(sequoia_device_probe); | 41 | machien_device_initcall(sequoia, sequoia_device_probe); |
45 | 42 | ||
46 | static int __init sequoia_probe(void) | 43 | static int __init sequoia_probe(void) |
47 | { | 44 | { |
diff --git a/arch/powerpc/platforms/44x/taishan.c b/arch/powerpc/platforms/44x/taishan.c index d525f487e244..28ab7e2e02c3 100644 --- a/arch/powerpc/platforms/44x/taishan.c +++ b/arch/powerpc/platforms/44x/taishan.c | |||
@@ -41,14 +41,11 @@ static __initdata struct of_device_id taishan_of_bus[] = { | |||
41 | 41 | ||
42 | static int __init taishan_device_probe(void) | 42 | static int __init taishan_device_probe(void) |
43 | { | 43 | { |
44 | if (!machine_is(taishan)) | ||
45 | return 0; | ||
46 | |||
47 | of_platform_bus_probe(NULL, taishan_of_bus, NULL); | 44 | of_platform_bus_probe(NULL, taishan_of_bus, NULL); |
48 | 45 | ||
49 | return 0; | 46 | return 0; |
50 | } | 47 | } |
51 | device_initcall(taishan_device_probe); | 48 | machine_device_initcall(taishan, taishan_device_probe); |
52 | 49 | ||
53 | /* | 50 | /* |
54 | * Called very early, MMU is off, device-tree isn't unflattened | 51 | * Called very early, MMU is off, device-tree isn't unflattened |