cpufreq: s5pv210: Remove spurious __init annotation
Subsystems (2)
PATCH 1/1 cpufreq: s5pv210: Remove spurious __init annotation
From: Mark Brown <[email protected]>
Since this is a platform driver and can be probed at any time we can't annotate funtions in the probe path as __init, the code can't safely be discarded at the end of kernel init.
--- drivers/cpufreq/s5pv210-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/s5pv210-cpufreq.c +1 -1
@@ -501,7 +501,7 @@ static int check_mem_type(void __iomem *dmc_reg)return val >>8 ; } -static int __init s5pv210_cpu_init (struct cpufreq_policy *policy) +static int s5pv210_cpu_init (struct cpufreq_policy *policy) {unsigned long mem_type;int ret;
Signature · 1 line
2.1.0.rc1
Quoted 16 lines · Mark Brown
From: Mark Brown <[email protected]>
Since this is a platform driver and can be probed at any time we can't annotate funtions in the probe path as
__init, the code can't safely be discarded at the end of kernel init.Signed-off-by Mark Brown <[email protected]>--- drivers/cpufreq/s5pv210-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/cpufreq/s5pv210-cpufreq.c +0
-0
drivers/cpufreq/s5pv210-cpufreq.c static int check_mem_type(void __iomem *dmc_reg) · line 507
Quoted 8 lines
drivers/cpufreq/s5pv210-cpufreq.c +1
-1@@ -501,7 +501,7 @@ static int check_mem_type(void __iomem *dmc_reg)return val >>8 ; } -static int __init s5pv210_cpu_init (struct cpufreq_policy *policy) +static int s5pv210_cpu_init (struct cpufreq_policy *policy) {unsigned long mem_type;int ret;
Rafael J. Wysocki
AppliedQuoted 20 lines · Viresh Kumar
Quoted 19 lines · Mark Brown
From: Mark Brown <[email protected]>
Since this is a platform driver and can be probed at any time we can't annotate funtions in the probe path as
__init, the code can't safely be discarded at the end of kernel init.Signed-off-by Mark Brown <[email protected]>--- drivers/cpufreq/s5pv210-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/cpufreq/s5pv210-cpufreq.c +0
-0@@ -501,7 +501,7 @@ static int check_mem_type(void __iomem *dmc_reg)return val >>8 ; }
Quoted 7 lines
drivers/cpufreq/s5pv210-cpufreq.c static int check_mem_type(void __iomem *dmc_reg) · line 507
Quoted 5 lines
drivers/cpufreq/s5pv210-cpufreq.c +1
-1-static int __init s5pv210_cpu_init (struct cpufreq_policy *policy) +static int s5pv210_cpu_init (struct cpufreq_policy *policy) {unsigned long mem_type;int ret;Acked-by Viresh Kumar <[email protected]>
Queued up for 3.17-rc3, thanks!
Signature · 2 lines
I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.