cpufreq: Tegra: drop wrapper around tegra_update_cpu_speed()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 15 May 2014 05:51:19 +0000 (11:21 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 16 May 2014 23:38:31 +0000 (01:38 +0200)
Tegra has implemented an unnecessary wrapper over tegra_update_cpu_speed(), i.e.
tegra_target(), which wasn't doing anything apart of calling
tegra_update_cpu_speed(). Get rid of that and use tegra_target() directly.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/tegra-cpufreq.c

index 63f00598a251e9304d27092f74b2a4b9e7c0e636..6e774c6ac20bf3ab82fe0e0dc3bd204de04009f9 100644 (file)
@@ -82,9 +82,9 @@ out:
        return ret;
 }
 
-static int tegra_update_cpu_speed(struct cpufreq_policy *policy,
-               unsigned long rate)
+static int tegra_target(struct cpufreq_policy *policy, unsigned int index)
 {
+       unsigned long rate = freq_table[index].frequency;
        int ret = 0;
 
        /*
@@ -106,11 +106,6 @@ static int tegra_update_cpu_speed(struct cpufreq_policy *policy,
        return ret;
 }
 
-static int tegra_target(struct cpufreq_policy *policy, unsigned int index)
-{
-       return tegra_update_cpu_speed(policy, freq_table[index].frequency);
-}
-
 static int tegra_cpu_init(struct cpufreq_policy *policy)
 {
        int ret;