Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cpufreq: Add __init annotation to module init funcs

Add missing __init annotation to module init funcs.

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>

authored by

Xiu Jianfeng and committed by
Viresh Kumar
f7968c22 f991b117

+3 -3
+1 -1
drivers/cpufreq/highbank-cpufreq.c
··· 55 55 .notifier_call = hb_cpufreq_clk_notify, 56 56 }; 57 57 58 - static int hb_cpufreq_driver_init(void) 58 + static int __init hb_cpufreq_driver_init(void) 59 59 { 60 60 struct platform_device_info devinfo = { .name = "cpufreq-dt", }; 61 61 struct device *cpu_dev;
+1 -1
drivers/cpufreq/sti-cpufreq.c
··· 252 252 return 0; 253 253 } 254 254 255 - static int sti_cpufreq_init(void) 255 + static int __init sti_cpufreq_init(void) 256 256 { 257 257 int ret; 258 258
+1 -1
drivers/cpufreq/ti-cpufreq.c
··· 398 398 return ret; 399 399 } 400 400 401 - static int ti_cpufreq_init(void) 401 + static int __init ti_cpufreq_init(void) 402 402 { 403 403 const struct of_device_id *match; 404 404