diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2008-01-21 13:58:06 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-01-23 20:54:25 -0500 |
commit | 6869e4ad4bd17e7699e58bed6464738e8677c392 (patch) | |
tree | 957ebd139e50f804853c41d564a6b707d29e46c2 /arch | |
parent | 1dd4561e7d9b907afd10709f9ff092861e8ab095 (diff) |
[POWERPC] 8xx: Use machine_*_initcall() hooks in platform code
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/8xx/ep88xc.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/8xx/mpc86xads_setup.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/8xx/mpc885ads_setup.c | 5 |
3 files changed, 6 insertions, 9 deletions
diff --git a/arch/powerpc/platforms/8xx/ep88xc.c b/arch/powerpc/platforms/8xx/ep88xc.c index c518b6cc5fa..88afa353f1d 100644 --- a/arch/powerpc/platforms/8xx/ep88xc.c +++ b/arch/powerpc/platforms/8xx/ep88xc.c | |||
@@ -155,12 +155,11 @@ static struct of_device_id __initdata of_bus_ids[] = { | |||
155 | static int __init declare_of_platform_devices(void) | 155 | static int __init declare_of_platform_devices(void) |
156 | { | 156 | { |
157 | /* Publish the QE devices */ | 157 | /* Publish the QE devices */ |
158 | if (machine_is(ep88xc)) | 158 | of_platform_bus_probe(NULL, of_bus_ids, NULL); |
159 | of_platform_bus_probe(NULL, of_bus_ids, NULL); | ||
160 | 159 | ||
161 | return 0; | 160 | return 0; |
162 | } | 161 | } |
163 | device_initcall(declare_of_platform_devices); | 162 | machine_device_initcall(ep88xc, declare_of_platform_devices); |
164 | 163 | ||
165 | define_machine(ep88xc) { | 164 | define_machine(ep88xc) { |
166 | .name = "Embedded Planet EP88xC", | 165 | .name = "Embedded Planet EP88xC", |
diff --git a/arch/powerpc/platforms/8xx/mpc86xads_setup.c b/arch/powerpc/platforms/8xx/mpc86xads_setup.c index d2927a434ae..d7965f88520 100644 --- a/arch/powerpc/platforms/8xx/mpc86xads_setup.c +++ b/arch/powerpc/platforms/8xx/mpc86xads_setup.c | |||
@@ -128,12 +128,11 @@ static struct of_device_id __initdata of_bus_ids[] = { | |||
128 | 128 | ||
129 | static int __init declare_of_platform_devices(void) | 129 | static int __init declare_of_platform_devices(void) |
130 | { | 130 | { |
131 | if (machine_is(mpc86x_ads)) | 131 | of_platform_bus_probe(NULL, of_bus_ids, NULL); |
132 | of_platform_bus_probe(NULL, of_bus_ids, NULL); | ||
133 | 132 | ||
134 | return 0; | 133 | return 0; |
135 | } | 134 | } |
136 | device_initcall(declare_of_platform_devices); | 135 | machine_device_initcall(mpc86x_ads, declare_of_platform_devices); |
137 | 136 | ||
138 | define_machine(mpc86x_ads) { | 137 | define_machine(mpc86x_ads) { |
139 | .name = "MPC86x ADS", | 138 | .name = "MPC86x ADS", |
diff --git a/arch/powerpc/platforms/8xx/mpc885ads_setup.c b/arch/powerpc/platforms/8xx/mpc885ads_setup.c index 2cf1b6a7517..6ef8e9e6b8c 100644 --- a/arch/powerpc/platforms/8xx/mpc885ads_setup.c +++ b/arch/powerpc/platforms/8xx/mpc885ads_setup.c | |||
@@ -264,12 +264,11 @@ static struct of_device_id __initdata of_bus_ids[] = { | |||
264 | static int __init declare_of_platform_devices(void) | 264 | static int __init declare_of_platform_devices(void) |
265 | { | 265 | { |
266 | /* Publish the QE devices */ | 266 | /* Publish the QE devices */ |
267 | if (machine_is(mpc885_ads)) | 267 | of_platform_bus_probe(NULL, of_bus_ids, NULL); |
268 | of_platform_bus_probe(NULL, of_bus_ids, NULL); | ||
269 | 268 | ||
270 | return 0; | 269 | return 0; |
271 | } | 270 | } |
272 | device_initcall(declare_of_platform_devices); | 271 | machine_device_initcall(mpc885_ads, declare_of_platform_devices); |
273 | 272 | ||
274 | define_machine(mpc885_ads) { | 273 | define_machine(mpc885_ads) { |
275 | .name = "Freescale MPC885 ADS", | 274 | .name = "Freescale MPC885 ADS", |