summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/83xx/mpc830x_rdb.c
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>2011-11-17 18:48:47 +0400
committerKumar Gala <galak@kernel.crashing.org>2011-11-24 02:01:40 -0600
commit7669d58c661b51f3c2b6bf0e93f230f0f7c2f597 (patch)
tree0965592544b74493b1b62c068a9a06a974142c3e /arch/powerpc/platforms/83xx/mpc830x_rdb.c
parentd4fb5ebd83c7044ce0784e899271f6fcb42d0713 (diff)
downloadblackbird-obmc-linux-7669d58c661b51f3c2b6bf0e93f230f0f7c2f597.tar.gz
blackbird-obmc-linux-7669d58c661b51f3c2b6bf0e93f230f0f7c2f597.zip
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/mpc830x_rdb.c')
-rw-r--r--arch/powerpc/platforms/83xx/mpc830x_rdb.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc830x_rdb.c b/arch/powerpc/platforms/83xx/mpc830x_rdb.c
index b453c15d200a..ef595f1ef705 100644
--- a/arch/powerpc/platforms/83xx/mpc830x_rdb.c
+++ b/arch/powerpc/platforms/83xx/mpc830x_rdb.c
@@ -56,18 +56,7 @@ static int __init mpc830x_rdb_probe(void)
return of_flat_dt_match(of_get_flat_dt_root(), board);
}
-static struct of_device_id __initdata of_bus_ids[] = {
- { .compatible = "simple-bus" },
- { .compatible = "gianfar" },
- {},
-};
-
-static int __init declare_of_platform_devices(void)
-{
- of_platform_bus_probe(NULL, of_bus_ids, NULL);
- return 0;
-}
-machine_device_initcall(mpc830x_rdb, declare_of_platform_devices);
+machine_device_initcall(mpc830x_rdb, mpc83xx_declare_of_platform_devices);
define_machine(mpc830x_rdb) {
.name = "MPC830x RDB",
OpenPOWER on IntegriCloud