summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/83xx/mpc837x_rdb.c
diff options
context:
space:
mode:
authorDmitry Eremin-Solenikov2011-11-17 15:48:47 +0100
committerKumar Gala2011-11-24 09:01:40 +0100
commit7669d58c661b51f3c2b6bf0e93f230f0f7c2f597 (patch)
tree0965592544b74493b1b62c068a9a06a974142c3e /arch/powerpc/platforms/83xx/mpc837x_rdb.c
parentpowerpc/83xx: consolidate init_IRQ functions (diff)
downloadkernel-qcow2-linux-7669d58c661b51f3c2b6bf0e93f230f0f7c2f597.tar.gz
kernel-qcow2-linux-7669d58c661b51f3c2b6bf0e93f230f0f7c2f597.tar.xz
kernel-qcow2-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/mpc837x_rdb.c')
-rw-r--r--arch/powerpc/platforms/83xx/mpc837x_rdb.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc837x_rdb.c b/arch/powerpc/platforms/83xx/mpc837x_rdb.c
index eebfd81c7519..a4a5336d1143 100644
--- a/arch/powerpc/platforms/83xx/mpc837x_rdb.c
+++ b/arch/powerpc/platforms/83xx/mpc837x_rdb.c
@@ -67,23 +67,7 @@ static void __init mpc837x_rdb_setup_arch(void)
mpc837x_rdb_sd_cfg();
}
-static struct of_device_id mpc837x_ids[] = {
- { .type = "soc", },
- { .compatible = "soc", },
- { .compatible = "simple-bus", },
- { .compatible = "gianfar", },
- { .compatible = "gpio-leds", },
- {},
-};
-
-static int __init mpc837x_declare_of_platform_devices(void)
-{
- /* Publish platform_device */
- of_platform_bus_probe(NULL, mpc837x_ids, NULL);
-
- return 0;
-}
-machine_device_initcall(mpc837x_rdb, mpc837x_declare_of_platform_devices);
+machine_device_initcall(mpc837x_rdb, mpc83xx_declare_of_platform_devices);
static const char *board[] __initdata = {
"fsl,mpc8377rdb",