cpufreq: exynos: Save struct device in driver data
authorTomasz Figa <t.figa@samsung.com>
Fri, 1 Mar 2013 17:07:56 +0000 (18:07 +0100)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:42:36 +0000 (11:42 +0900)
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>
drivers/cpufreq/exynos-cpufreq.c
drivers/cpufreq/exynos-cpufreq.h

index 976598f..4450711 100644 (file)
@@ -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())
index 92b852e..1d45a61 100644 (file)
@@ -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;