aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/82xx
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2008-01-25 00:23:24 -0500
committerKumar Gala <galak@kernel.crashing.org>2008-01-28 09:30:41 -0500
commitca956f0ea8baa6365b5e39d16373f430e12a030d (patch)
treeb5fece898f5fe79d88457cc71fda492f85d4f9b9 /arch/powerpc/platforms/82xx
parentb61ad6532b243dd82d658d6370abb6f481ddd25e (diff)
[POWERPC] 82xx and embedded6xx: 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/powerpc/platforms/82xx')
-rw-r--r--arch/powerpc/platforms/82xx/mpc8272_ads.c5
-rw-r--r--arch/powerpc/platforms/82xx/pq2fads.c5
2 files changed, 2 insertions, 8 deletions
diff --git a/arch/powerpc/platforms/82xx/mpc8272_ads.c b/arch/powerpc/platforms/82xx/mpc8272_ads.c
index fd83440eb287..3fce6b375dbc 100644
--- a/arch/powerpc/platforms/82xx/mpc8272_ads.c
+++ b/arch/powerpc/platforms/82xx/mpc8272_ads.c
@@ -165,14 +165,11 @@ static struct of_device_id __initdata of_bus_ids[] = {
165 165
166static int __init declare_of_platform_devices(void) 166static int __init declare_of_platform_devices(void)
167{ 167{
168 if (!machine_is(mpc8272_ads))
169 return 0;
170
171 /* Publish the QE devices */ 168 /* Publish the QE devices */
172 of_platform_bus_probe(NULL, of_bus_ids, NULL); 169 of_platform_bus_probe(NULL, of_bus_ids, NULL);
173 return 0; 170 return 0;
174} 171}
175device_initcall(declare_of_platform_devices); 172machine_device_initcall(mpc8272_ads, declare_of_platform_devices);
176 173
177/* 174/*
178 * Called very early, device-tree isn't unflattened 175 * Called very early, device-tree isn't unflattened
diff --git a/arch/powerpc/platforms/82xx/pq2fads.c b/arch/powerpc/platforms/82xx/pq2fads.c
index 1be500501806..68196e349994 100644
--- a/arch/powerpc/platforms/82xx/pq2fads.c
+++ b/arch/powerpc/platforms/82xx/pq2fads.c
@@ -176,14 +176,11 @@ static struct of_device_id __initdata of_bus_ids[] = {
176 176
177static int __init declare_of_platform_devices(void) 177static int __init declare_of_platform_devices(void)
178{ 178{
179 if (!machine_is(pq2fads))
180 return 0;
181
182 /* Publish the QE devices */ 179 /* Publish the QE devices */
183 of_platform_bus_probe(NULL, of_bus_ids, NULL); 180 of_platform_bus_probe(NULL, of_bus_ids, NULL);
184 return 0; 181 return 0;
185} 182}
186device_initcall(declare_of_platform_devices); 183machine_device_initcall(pq2fads, declare_of_platform_devices);
187 184
188define_machine(pq2fads) 185define_machine(pq2fads)
189{ 186{