diff options
author | Scott Wood <scottwood@freescale.com> | 2007-12-13 12:19:05 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-12-13 23:52:32 -0500 |
commit | 8129a59a53d13242879c33cf5377c863dba3323a (patch) | |
tree | 7e46475dcd481e7bc425f042c1ea3e96e947f513 /arch/powerpc/platforms/83xx | |
parent | 362f9b6fa8c9670cc5496390845021c2865d049b (diff) |
[POWERPC] 83xx: mpc834x_mds: Fix whitespace and call of_platform_bus_probe().
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/83xx')
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc834x_mds.c | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc834x_mds.c b/arch/powerpc/platforms/83xx/mpc834x_mds.c index a81bb3ce6b94..459fb7227e76 100644 --- a/arch/powerpc/platforms/83xx/mpc834x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc834x_mds.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/delay.h> | 23 | #include <linux/delay.h> |
24 | #include <linux/seq_file.h> | 24 | #include <linux/seq_file.h> |
25 | #include <linux/root_dev.h> | 25 | #include <linux/root_dev.h> |
26 | #include <linux/of_platform.h> | ||
26 | 27 | ||
27 | #include <asm/system.h> | 28 | #include <asm/system.h> |
28 | #include <asm/atomic.h> | 29 | #include <asm/atomic.h> |
@@ -106,14 +107,30 @@ static void __init mpc834x_mds_init_IRQ(void) | |||
106 | ipic_set_default_priority(); | 107 | ipic_set_default_priority(); |
107 | } | 108 | } |
108 | 109 | ||
110 | static struct of_device_id mpc834x_ids[] = { | ||
111 | { .type = "soc", }, | ||
112 | { .compatible = "soc", }, | ||
113 | {}, | ||
114 | }; | ||
115 | |||
116 | static int __init mpc834x_declare_of_platform_devices(void) | ||
117 | { | ||
118 | if (!machine_is(mpc834x_mds)) | ||
119 | return 0; | ||
120 | |||
121 | of_platform_bus_probe(NULL, mpc834x_ids, NULL); | ||
122 | return 0; | ||
123 | } | ||
124 | device_initcall(mpc834x_declare_of_platform_devices); | ||
125 | |||
109 | /* | 126 | /* |
110 | * Called very early, MMU is off, device-tree isn't unflattened | 127 | * Called very early, MMU is off, device-tree isn't unflattened |
111 | */ | 128 | */ |
112 | static int __init mpc834x_mds_probe(void) | 129 | static int __init mpc834x_mds_probe(void) |
113 | { | 130 | { |
114 | unsigned long root = of_get_flat_dt_root(); | 131 | unsigned long root = of_get_flat_dt_root(); |
115 | 132 | ||
116 | return of_flat_dt_is_compatible(root, "MPC834xMDS"); | 133 | return of_flat_dt_is_compatible(root, "MPC834xMDS"); |
117 | } | 134 | } |
118 | 135 | ||
119 | define_machine(mpc834x_mds) { | 136 | define_machine(mpc834x_mds) { |