diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-09-04 04:17:24 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-09-14 20:03:16 -0400 |
commit | 8f8d37b2537a28b5b2e3cb60dfc85a2a1303f99b (patch) | |
tree | 787d57b31328223f5c3dedd11830dce2f63f3acd /drivers/cpufreq/mt8173-cpufreq.c | |
parent | f0489a5ef4d011e29f78021ad13a543e8769d619 (diff) |
PM / OPP: Prefix exported opp routines with dev_pm_opp_
That's the naming convention followed in most of opp core, but few
routines didn't follow this, fix them.
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/mt8173-cpufreq.c')
-rw-r--r-- | drivers/cpufreq/mt8173-cpufreq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/cpufreq/mt8173-cpufreq.c b/drivers/cpufreq/mt8173-cpufreq.c index 519e83146e86..83001dc5b646 100644 --- a/drivers/cpufreq/mt8173-cpufreq.c +++ b/drivers/cpufreq/mt8173-cpufreq.c | |||
@@ -344,7 +344,7 @@ static int mtk_cpu_dvfs_info_init(struct mtk_cpu_dvfs_info *info, int cpu) | |||
344 | /* Both presence and absence of sram regulator are valid cases. */ | 344 | /* Both presence and absence of sram regulator are valid cases. */ |
345 | sram_reg = regulator_get_exclusive(cpu_dev, "sram"); | 345 | sram_reg = regulator_get_exclusive(cpu_dev, "sram"); |
346 | 346 | ||
347 | ret = of_add_opp_table(cpu_dev); | 347 | ret = dev_pm_opp_of_add_table(cpu_dev); |
348 | if (ret) { | 348 | if (ret) { |
349 | pr_warn("no OPP table for cpu%d\n", cpu); | 349 | pr_warn("no OPP table for cpu%d\n", cpu); |
350 | goto out_free_resources; | 350 | goto out_free_resources; |
@@ -378,7 +378,7 @@ static int mtk_cpu_dvfs_info_init(struct mtk_cpu_dvfs_info *info, int cpu) | |||
378 | return 0; | 378 | return 0; |
379 | 379 | ||
380 | out_free_opp_table: | 380 | out_free_opp_table: |
381 | of_remove_opp_table(cpu_dev); | 381 | dev_pm_opp_of_remove_table(cpu_dev); |
382 | 382 | ||
383 | out_free_resources: | 383 | out_free_resources: |
384 | if (!IS_ERR(proc_reg)) | 384 | if (!IS_ERR(proc_reg)) |
@@ -404,7 +404,7 @@ static void mtk_cpu_dvfs_info_release(struct mtk_cpu_dvfs_info *info) | |||
404 | if (!IS_ERR(info->inter_clk)) | 404 | if (!IS_ERR(info->inter_clk)) |
405 | clk_put(info->inter_clk); | 405 | clk_put(info->inter_clk); |
406 | 406 | ||
407 | of_remove_opp_table(info->cpu_dev); | 407 | dev_pm_opp_of_remove_table(info->cpu_dev); |
408 | } | 408 | } |
409 | 409 | ||
410 | static int mtk_cpufreq_init(struct cpufreq_policy *policy) | 410 | static int mtk_cpufreq_init(struct cpufreq_policy *policy) |