Skip to contentSkip to conversation

cpufreq: s5pv210: Remove spurious __init annotation

PATCH Applied Mark Brown 3 participants 3 messages Aug 27, 2014

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

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
index 9a68225a757e..3f9791f07b8e 100644
@@ -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
maintainer Acked-by on v1 1/1
#1 lore raw
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.

---
 drivers/cpufreq/s5pv210-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/s5pv210-cpufreq.c +0 -0
index 9a68225a757e..3f9791f07b8e 100644

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;
#2 lore raw
Quoted 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.

---
 drivers/cpufreq/s5pv210-cpufreq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpufreq/s5pv210-cpufreq.c +0 -0
index 9a68225a757e..3f9791f07b8e 100644
@@ -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;

Queued up for 3.17-rc3, thanks!

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.