summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQais Yousef2013-12-06 12:00:44 +0100
committerRalf Baechle2014-01-23 13:02:36 +0100
commit187e7c5f87822262e41b157acc2ab79e0b20a4db (patch)
tree472c4ffd2e48a9905e53c8b6cb83d1d85e05bf03
parentMIPS: sead3: remove chosen node (diff)
downloadkernel-qcow2-linux-187e7c5f87822262e41b157acc2ab79e0b20a4db.tar.gz
kernel-qcow2-linux-187e7c5f87822262e41b157acc2ab79e0b20a4db.tar.xz
kernel-qcow2-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/
-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);