mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
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>
This commit is contained in:
parent
f991b11712
commit
f7968c22bd
@ -55,7 +55,7 @@ static struct notifier_block hb_cpufreq_clk_nb = {
|
||||
.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 device *cpu_dev;
|
||||
|
@ -252,7 +252,7 @@ static int sti_cpufreq_fetch_syscon_registers(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int sti_cpufreq_init(void)
|
||||
static int __init sti_cpufreq_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
@ -398,7 +398,7 @@ fail_put_node:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int ti_cpufreq_init(void)
|
||||
static int __init ti_cpufreq_init(void)
|
||||
{
|
||||
const struct of_device_id *match;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user