Commit e7b453d3 authored by Viresh Kumar's avatar Viresh Kumar Committed by Rafael J. Wysocki

cpufreq: Tegra: drop wrapper around tegra_update_cpu_speed()

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: default avatarViresh Kumar <viresh.kumar@linaro.org>
Acked-by: Stephen Warren's avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 5ee73ebe
......@@ -82,9 +82,9 @@ static int tegra_cpu_clk_set_rate(unsigned long rate)
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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment