This patch adds support for probing devices from device tree
for Samsung's SMDKV310 machine.

Signed-off-by: Thomas Abraham <thomas.abra...@linaro.org>
---
 arch/arm/mach-s5pv310/mach-smdkv310-dt.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-s5pv310/mach-smdkv310-dt.c 
b/arch/arm/mach-s5pv310/mach-smdkv310-dt.c
index 367fdb1..f81d88a 100644
--- a/arch/arm/mach-s5pv310/mach-smdkv310-dt.c
+++ b/arch/arm/mach-s5pv310/mach-smdkv310-dt.c
@@ -79,9 +79,15 @@ static void __init smdkv310_map_io(void)
        s3c24xx_init_uarts(smdkv310_uartcfgs, ARRAY_SIZE(smdkv310_uartcfgs));
 }
 
+static struct of_device_id smdkv310_dt_match_table[] __initdata = {
+       { .compatible = "simple-bus", },
+       {},
+};
+
 static void __init smdkv310_machine_init(void)
 {
        platform_add_devices(smdkv310_devices, ARRAY_SIZE(smdkv310_devices));
+       of_platform_bus_probe(NULL, smdkv310_dt_match_table, NULL);
 }
 
 static char const *smdkv310_dt_compat[] = {
-- 
1.6.6.rc2


_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to