summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/8xx/mpc86xads_setup.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2008-01-21 19:58:06 +0100
committerKumar Gala <galak@kernel.crashing.org>2008-01-24 02:54:25 +0100
commit6869e4ad4bd17e7699e58bed6464738e8677c392 (patch)
tree957ebd139e50f804853c41d564a6b707d29e46c2 /arch/powerpc/platforms/8xx/mpc86xads_setup.c
parent[POWERPC] Fix compile error if CONFIG_STX_GP3 is defined (diff)
downloadlinux-6869e4ad4bd17e7699e58bed6464738e8677c392.tar.xz
linux-6869e4ad4bd17e7699e58bed6464738e8677c392.zip
[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/powerpc/platforms/8xx/mpc86xads_setup.c')
-rw-r--r--arch/powerpc/platforms/8xx/mpc86xads_setup.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/8xx/mpc86xads_setup.c b/arch/powerpc/platforms/8xx/mpc86xads_setup.c
index d2927a434aef..d7965f885209 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[] = {
static int __init declare_of_platform_devices(void)
{
- if (machine_is(mpc86x_ads))
- of_platform_bus_probe(NULL, of_bus_ids, NULL);
+ of_platform_bus_probe(NULL, of_bus_ids, NULL);
return 0;
}
-device_initcall(declare_of_platform_devices);
+machine_device_initcall(mpc86x_ads, declare_of_platform_devices);
define_machine(mpc86x_ads) {
.name = "MPC86x ADS",