cpufreq / pxa2xx: Fix pxa_cpufreq_init_voltages() __init attribute location
__init belongs after the return type on functions, not before it. Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
af97385ad4
commit
295dbde1c6
|
@ -191,7 +191,7 @@ static int pxa_cpufreq_change_voltage(pxa_freqs_t *pxa_freq)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static __init void pxa_cpufreq_init_voltages(void)
|
static void __init pxa_cpufreq_init_voltages(void)
|
||||||
{
|
{
|
||||||
vcc_core = regulator_get(NULL, "vcc_core");
|
vcc_core = regulator_get(NULL, "vcc_core");
|
||||||
if (IS_ERR(vcc_core)) {
|
if (IS_ERR(vcc_core)) {
|
||||||
|
@ -207,7 +207,7 @@ static int pxa_cpufreq_change_voltage(pxa_freqs_t *pxa_freq)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static __init void pxa_cpufreq_init_voltages(void) { }
|
static void __init pxa_cpufreq_init_voltages(void) { }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void find_freq_tables(struct cpufreq_frequency_table **freq_table,
|
static void find_freq_tables(struct cpufreq_frequency_table **freq_table,
|
||||||
|
|
Loading…
Reference in New Issue