summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorQais Yousef <qais.yousef@imgtec.com>2013-12-06 11:00:44 +0000
committerRalf Baechle <ralf@linux-mips.org>2014-01-23 13:02:36 +0100
commit187e7c5f87822262e41b157acc2ab79e0b20a4db (patch)
tree472c4ffd2e48a9905e53c8b6cb83d1d85e05bf03 /arch
parent8bb5a8750836d93116204942e4603bc4a19fcd03 (diff)
downloadblackbird-op-linux-187e7c5f87822262e41b157acc2ab79e0b20a4db.tar.gz
blackbird-op-linux-187e7c5f87822262e41b157acc2ab79e0b20a4db.zip
MIPS: sead3: populate platform devices from device tree
Signed-off-by: Qais Yousef <qais.yousef@imgtec.com> Reviewed-by: Paul Burton <paul.burton@imgtec.com> Reviewed-by: James Hogan <james.hogan@imgtec.com> Signed-off-by: John Crispin <blogic@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/6209/
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/mti-sead3/sead3-setup.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/mips/mti-sead3/sead3-setup.c b/arch/mips/mti-sead3/sead3-setup.c
index a499f9940fd7..541a90798d42 100644
--- a/arch/mips/mti-sead3/sead3-setup.c
+++ b/arch/mips/mti-sead3/sead3-setup.c
@@ -111,3 +111,10 @@ void __init device_tree_init(void)
unflatten_device_tree();
}
+
+static int __init customize_machine(void)
+{
+ of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
+ return 0;
+}
+arch_initcall(customize_machine);
OpenPOWER on IntegriCloud