From 1e4002dedfad475e89cf67f6c19d7c94b9aed0f6 Mon Sep 17 00:00:00 2001 From: Qais Yousef Date: Fri, 6 Dec 2013 11:00:44 +0000 Subject: [PATCH] MIPS: sead3: populate platform devices from device tree Signed-off-by: Qais Yousef Reviewed-by: Paul Burton Reviewed-by: James Hogan Acked-by: John Crispin Patchwork: http://patchwork.linux-mips.org/patch/6209/ --- arch/mips/mti-sead3/sead3-setup.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 2.39.5