diff options
author | Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> | 2011-11-17 09:48:47 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-11-24 03:01:40 -0500 |
commit | 7669d58c661b51f3c2b6bf0e93f230f0f7c2f597 (patch) | |
tree | 0965592544b74493b1b62c068a9a06a974142c3e /arch/powerpc/platforms/83xx/mpc834x_mds.c | |
parent | d4fb5ebd83c7044ce0784e899271f6fcb42d0713 (diff) |
powerpc/83xx: consolidate of_platform_bus_probe calls
83xx board files have a lot of duplication in
*_declare_of_platform_devices() functions. Merge that into a single
function common to most of the boards.
The only leftover is mpc834x_itx.c board file which explicitly asks for
fsl,pq2pro-localbus, as corresponding bindings don't provide
"simple-bus" compatibility in localbus node.
Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/83xx/mpc834x_mds.c')
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc834x_mds.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc834x_mds.c b/arch/powerpc/platforms/83xx/mpc834x_mds.c index 3807735a88d8..4be95550d0c3 100644 --- a/arch/powerpc/platforms/83xx/mpc834x_mds.c +++ b/arch/powerpc/platforms/83xx/mpc834x_mds.c | |||
@@ -92,20 +92,7 @@ static void __init mpc834x_mds_setup_arch(void) | |||
92 | mpc834xemds_usb_cfg(); | 92 | mpc834xemds_usb_cfg(); |
93 | } | 93 | } |
94 | 94 | ||
95 | static struct of_device_id mpc834x_ids[] = { | 95 | machine_device_initcall(mpc834x_mds, mpc83xx_declare_of_platform_devices); |
96 | { .type = "soc", }, | ||
97 | { .compatible = "soc", }, | ||
98 | { .compatible = "simple-bus", }, | ||
99 | { .compatible = "gianfar", }, | ||
100 | {}, | ||
101 | }; | ||
102 | |||
103 | static int __init mpc834x_declare_of_platform_devices(void) | ||
104 | { | ||
105 | of_platform_bus_probe(NULL, mpc834x_ids, NULL); | ||
106 | return 0; | ||
107 | } | ||
108 | machine_device_initcall(mpc834x_mds, mpc834x_declare_of_platform_devices); | ||
109 | 96 | ||
110 | /* | 97 | /* |
111 | * Called very early, MMU is off, device-tree isn't unflattened | 98 | * Called very early, MMU is off, device-tree isn't unflattened |