summaryrefslogtreecommitdiff
path: root/drivers/cpufreq/ia64-acpi-cpufreq.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2014-03-28 17:41:44 +0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-04-07 16:43:49 +0400
commit1ea7d77b099434916756ac0920a0af6e9a408251 (patch)
treef8282a966b1ef3c930c1ad1c6adac713da07e993 /drivers/cpufreq/ia64-acpi-cpufreq.c
parent81f359027a3a383cc1dc79499ce97f1074861e5b (diff)
downloadlinux-1ea7d77b099434916756ac0920a0af6e9a408251.tar.xz
cpufreq: ia64: don't set .driver_data to index
.driver_data field is only required to be filled if drivers want to preserve some data in there which they can use according to the value of .frequency. But this driver isn't using this field at all, but just setting it equal to the index value. Which isn't required. Fix it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/ia64-acpi-cpufreq.c')
-rw-r--r--drivers/cpufreq/ia64-acpi-cpufreq.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/cpufreq/ia64-acpi-cpufreq.c b/drivers/cpufreq/ia64-acpi-cpufreq.c
index a22b5d182e0e..beb191b589d4 100644
--- a/drivers/cpufreq/ia64-acpi-cpufreq.c
+++ b/drivers/cpufreq/ia64-acpi-cpufreq.c
@@ -275,7 +275,6 @@ acpi_cpufreq_cpu_init (
/* table init */
for (i = 0; i <= data->acpi_data.state_count; i++)
{
- data->freq_table[i].driver_data = i;
if (i < data->acpi_data.state_count) {
data->freq_table[i].frequency =
data->acpi_data.states[i].core_frequency * 1000;