]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
cpufreq: s5pv210: Remove spurious __init annotation
authorMark Brown <broonie@linaro.org>
Wed, 27 Aug 2014 11:00:27 +0000 (12:00 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 27 Aug 2014 23:30:55 +0000 (01:30 +0200)
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 <broonie@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/s5pv210-cpufreq.c

index 9a68225a757e44edd2554f9672197ee64363a5ad..3f9791f07b8ea05f745a2bcbce6b738379443087 100644 (file)
@@ -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;