[RFC v2 4/4] ARM: SAMSUNG: Register static platform device for ASV for Exynos5

From: Sachin Kamat
Date: Fri Nov 15 2013 - 06:44:11 EST


From: Yadwinder Singh Brar <yadi.brar@xxxxxxxxxxx>

Since ASV is not a hardware controller, we can't add device tree node
for it. This patch registers a static platform device for Exynos ASV.

Signed-off-by: Yadwinder Singh Brar <yadi.brar@xxxxxxxxxxx>
Signed-off-by: Sachin Kamat <sachin.kamat@xxxxxxxxxx>
---
arch/arm/mach-exynos/mach-exynos5-dt.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c
index 602c5d7111d0..831b7222aab6 100644
--- a/arch/arm/mach-exynos/mach-exynos5-dt.c
+++ b/arch/arm/mach-exynos/mach-exynos5-dt.c
@@ -24,6 +24,7 @@ static void __init exynos5_dt_machine_init(void)
struct device_node *i2c_np;
const char *i2c_compat = "samsung,s3c2440-i2c";
unsigned int tmp;
+ struct platform_device_info devinfo = { .name = "exynos-asv", };

/*
* Exynos5's legacy i2c controller and new high speed i2c
@@ -47,6 +48,7 @@ static void __init exynos5_dt_machine_init(void)
exynos_cpufreq_init();

of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
+ platform_device_register_full(&devinfo);
}

static char const *exynos5_dt_compat[] __initdata = {
--
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/