summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2013-03-01 18:07:56 +0100
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:42:36 +0900
commit13dee98298f21e387c1ddfe73ae1ebeb66565fde (patch)
treeb6c5ce16531bd552a20df6cbf94a8f2a4174e4dd /drivers
parentbb7e80a98e369f6713b9d1aedc7aabd0334b795a (diff)
downloadlinux-3.10-13dee98298f21e387c1ddfe73ae1ebeb66565fde.tar.gz
linux-3.10-13dee98298f21e387c1ddfe73ae1ebeb66565fde.tar.bz2
linux-3.10-13dee98298f21e387c1ddfe73ae1ebeb66565fde.zip
cpufreq: exynos: Save struct device in driver data
This patch adds dev field in exynos cpufreq driver data to allow Device Tree based clock and regulator lookups. Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/cpufreq/exynos-cpufreq.c2
-rw-r--r--drivers/cpufreq/exynos-cpufreq.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers/cpufreq/exynos-cpufreq.c
index 976598fdde4..44507113c35 100644
--- a/drivers/cpufreq/exynos-cpufreq.c
+++ b/drivers/cpufreq/exynos-cpufreq.c
@@ -299,6 +299,8 @@ static int __init exynos_cpufreq_probe(struct platform_device *pdev)
if (!exynos_info)
return -ENOMEM;
+ exynos_info->dev = &pdev->dev;
+
if (soc_is_exynos4210())
ret = exynos4210_cpufreq_init(exynos_info);
else if (soc_is_exynos4212() || soc_is_exynos4412())
diff --git a/drivers/cpufreq/exynos-cpufreq.h b/drivers/cpufreq/exynos-cpufreq.h
index 92b852ee5dd..1d45a6189da 100644
--- a/drivers/cpufreq/exynos-cpufreq.h
+++ b/drivers/cpufreq/exynos-cpufreq.h
@@ -34,6 +34,7 @@ struct apll_freq {
};
struct exynos_dvfs_info {
+ struct device *dev;
unsigned long mpll_freq_khz;
unsigned int pll_safe_idx;
struct clk *cpu_clk;