diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-05-14 19:08:50 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-05-27 13:11:14 +0200 |
commit | 5d69030db5c93d0521174ef0d3d5d3bceeb04e42 (patch) | |
tree | ec60a8e7b50fefdf7c6a5c2759374f2cd32b18c4 /drivers | |
parent | e4aa937ec75df0eea0bee03bffa3303ad36c986b (diff) | |
download | talos-op-linux-5d69030db5c93d0521174ef0d3d5d3bceeb04e42.tar.gz talos-op-linux-5d69030db5c93d0521174ef0d3d5d3bceeb04e42.zip |
cpufreq: tegra: Don't initialize .index field of cpufreq_frequency_table
The Tegra cpufreq driver doesn't use .index field of
cpufreq_frequency_table and so we don't need to initialize it.
Don't initialize it.
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/cpufreq/tegra-cpufreq.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/drivers/cpufreq/tegra-cpufreq.c b/drivers/cpufreq/tegra-cpufreq.c index c74c0e130ef4..81561be17e8c 100644 --- a/drivers/cpufreq/tegra-cpufreq.c +++ b/drivers/cpufreq/tegra-cpufreq.c @@ -28,17 +28,16 @@ #include <linux/io.h> #include <linux/suspend.h> -/* Frequency table index must be sequential starting at 0 */ static struct cpufreq_frequency_table freq_table[] = { - { 0, 216000 }, - { 1, 312000 }, - { 2, 456000 }, - { 3, 608000 }, - { 4, 760000 }, - { 5, 816000 }, - { 6, 912000 }, - { 7, 1000000 }, - { 8, CPUFREQ_TABLE_END }, + { .frequency = 216000 }, + { .frequency = 312000 }, + { .frequency = 456000 }, + { .frequency = 608000 }, + { .frequency = 760000 }, + { .frequency = 816000 }, + { .frequency = 912000 }, + { .frequency = 1000000 }, + { .frequency = CPUFREQ_TABLE_END }, }; #define NUM_CPUS 2 |