diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-01-25 16:44:38 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-01-27 23:22:50 +0100 |
commit | fb2a24a1c6457d21df9fae0dd66b20c63ba56077 (patch) | |
tree | 96988e524840ea4e4088b7c3a9e1f38058fdf060 /kernel | |
parent | 2dadfd7564ef28391609c7ef896fd85218799012 (diff) | |
download | linux-fb2a24a1c6457d21df9fae0dd66b20c63ba56077.tar.gz linux-fb2a24a1c6457d21df9fae0dd66b20c63ba56077.tar.bz2 linux-fb2a24a1c6457d21df9fae0dd66b20c63ba56077.zip |
cpufreq: pxa2xx: fix pxa_cpufreq_change_voltage prototype
There are two definitions of pxa_cpufreq_change_voltage, with slightly
different prototypes after one of them had its argument marked 'const'.
Now the other one (for !CONFIG_REGULATOR) produces a harmless warning:
drivers/cpufreq/pxa2xx-cpufreq.c: In function 'pxa_set_target':
drivers/cpufreq/pxa2xx-cpufreq.c:291:36: warning: passing argument 1 of 'pxa_cpufreq_change_voltage' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
ret = pxa_cpufreq_change_voltage(&pxa_freq_settings[idx]);
^
drivers/cpufreq/pxa2xx-cpufreq.c:205:12: note: expected 'struct pxa_freqs *' but argument is of type 'const struct pxa_freqs *'
static int pxa_cpufreq_change_voltage(struct pxa_freqs *pxa_freq)
^
This changes the prototype in the same way as the other, which
avoids the warning.
Fixes: 03c229906311 (cpufreq: pxa: make pxa_freqs arrays const)
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: 4.2+ <stable@vger.kernel.org> # 4.2+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions