diff options
author | Tomasz Figa <t.figa@samsung.com> | 2013-03-01 18:10:53 +0100 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-11-18 11:42:37 +0900 |
commit | 9393ce09a96d8d2f26ae24c79f139534e9176dc5 (patch) | |
tree | 5ba84d275f5505f843a898dfd9fd051c75e8fc6a /drivers/cpufreq/exynos4210-cpufreq.c | |
parent | a2d971fe3d0e395f5ee8bf3067398e8619f7b97c (diff) | |
download | linux-3.10-9393ce09a96d8d2f26ae24c79f139534e9176dc5.tar.gz linux-3.10-9393ce09a96d8d2f26ae24c79f139534e9176dc5.tar.bz2 linux-3.10-9393ce09a96d8d2f26ae24c79f139534e9176dc5.zip |
cpufreq: exynos4210: Use device-based lookup for clocks
This patch adds device-based lookup of clocks to allow lookup using
Device Tree.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Diffstat (limited to 'drivers/cpufreq/exynos4210-cpufreq.c')
-rw-r--r-- | drivers/cpufreq/exynos4210-cpufreq.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/cpufreq/exynos4210-cpufreq.c b/drivers/cpufreq/exynos4210-cpufreq.c index add7fbec4fc..7e4c8862c03 100644 --- a/drivers/cpufreq/exynos4210-cpufreq.c +++ b/drivers/cpufreq/exynos4210-cpufreq.c @@ -169,21 +169,21 @@ int exynos4210_cpufreq_init(struct exynos_dvfs_info *info) { unsigned long rate; - cpu_clk = clk_get(NULL, "armclk"); + cpu_clk = clk_get(info->dev, "armclk"); if (IS_ERR(cpu_clk)) return PTR_ERR(cpu_clk); - moutcore = clk_get(NULL, "moutcore"); + moutcore = clk_get(info->dev, "moutcore"); if (IS_ERR(moutcore)) goto err_moutcore; - mout_mpll = clk_get(NULL, "mout_mpll"); + mout_mpll = clk_get(info->dev, "mout_mpll"); if (IS_ERR(mout_mpll)) goto err_mout_mpll; rate = clk_get_rate(mout_mpll) / 1000; - mout_apll = clk_get(NULL, "mout_apll"); + mout_apll = clk_get(info->dev, "mout_apll"); if (IS_ERR(mout_apll)) goto err_mout_apll; |