Commit f7968c22 authored by Xiu Jianfeng's avatar Xiu Jianfeng Committed by Viresh Kumar

cpufreq: Add __init annotation to module init funcs

Add missing __init annotation to module init funcs.
Signed-off-by: default avatarXiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent f991b117
...@@ -55,7 +55,7 @@ static struct notifier_block hb_cpufreq_clk_nb = { ...@@ -55,7 +55,7 @@ static struct notifier_block hb_cpufreq_clk_nb = {
.notifier_call = hb_cpufreq_clk_notify, .notifier_call = hb_cpufreq_clk_notify,
}; };
static int hb_cpufreq_driver_init(void) static int __init hb_cpufreq_driver_init(void)
{ {
struct platform_device_info devinfo = { .name = "cpufreq-dt", }; struct platform_device_info devinfo = { .name = "cpufreq-dt", };
struct device *cpu_dev; struct device *cpu_dev;
......
...@@ -252,7 +252,7 @@ static int sti_cpufreq_fetch_syscon_registers(void) ...@@ -252,7 +252,7 @@ static int sti_cpufreq_fetch_syscon_registers(void)
return 0; return 0;
} }
static int sti_cpufreq_init(void) static int __init sti_cpufreq_init(void)
{ {
int ret; int ret;
......
...@@ -398,7 +398,7 @@ static int ti_cpufreq_probe(struct platform_device *pdev) ...@@ -398,7 +398,7 @@ static int ti_cpufreq_probe(struct platform_device *pdev)
return ret; return ret;
} }
static int ti_cpufreq_init(void) static int __init ti_cpufreq_init(void)
{ {
const struct of_device_id *match; const struct of_device_id *match;
......
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