summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/83xx/mpc837x_mds.c
diff options
context:
space:
mode:
authorKumar Gala2008-01-15 16:47:10 +0100
committerKumar Gala2008-01-24 02:32:39 +0100
commit6392f1845b54eefbfa5f3569155451949d250b6d (patch)
tree198bb90249b1bf95692fc6b9eee25ab8372edceb /arch/powerpc/platforms/83xx/mpc837x_mds.c
parent[POWERPC] 85xx: convert boards to use machine_device_initcall (diff)
downloadkernel-qcow2-linux-6392f1845b54eefbfa5f3569155451949d250b6d.tar.gz
kernel-qcow2-linux-6392f1845b54eefbfa5f3569155451949d250b6d.tar.xz
kernel-qcow2-linux-6392f1845b54eefbfa5f3569155451949d250b6d.zip
[POWERPC] 83xx: convert boards to use machine_device_initcall
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/83xx/mpc837x_mds.c')
-rw-r--r--arch/powerpc/platforms/83xx/mpc837x_mds.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc837x_mds.c b/arch/powerpc/platforms/83xx/mpc837x_mds.c
index 9cdc32b4fa18..cfd05487f26e 100644
--- a/arch/powerpc/platforms/83xx/mpc837x_mds.c
+++ b/arch/powerpc/platforms/83xx/mpc837x_mds.c
@@ -50,15 +50,12 @@ static struct of_device_id mpc837x_ids[] = {
static int __init mpc837x_declare_of_platform_devices(void)
{
- if (!machine_is(mpc837x_mds))
- return 0;
-
/* Publish of_device */
of_platform_bus_probe(NULL, mpc837x_ids, NULL);
return 0;
}
-device_initcall(mpc837x_declare_of_platform_devices);
+machine_device_initcall(mpc837x_mds, mpc837x_declare_of_platform_devices);
static void __init mpc837x_mds_init_IRQ(void)
{