[BUGFIX][PATCH] plat-mxc: [cpufreq] Fix section mismatch due to incorrect __init attributes

Lothar Waßmann LW at KARO-electronics.de
Thu Jul 7 03:43:12 EDT 2011


The mxc_cpufreq_init() function is incorrectly labeled __init while
the real __init function mxc_cpufreq_driver_init() is labeled __devinit.

Signed-off-by: Lothar Waßmann <LW at KARO-electronics.de>
---
 arch/arm/plat-mxc/cpufreq.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/plat-mxc/cpufreq.c b/arch/arm/plat-mxc/cpufreq.c
index 74aac96..e0107e9 100644
--- a/arch/arm/plat-mxc/cpufreq.c
+++ b/arch/arm/plat-mxc/cpufreq.c
@@ -97,7 +97,7 @@ static int mxc_set_target(struct cpufreq_policy *policy,
 	return ret;
 }
 
-static int __init mxc_cpufreq_init(struct cpufreq_policy *policy)
+static int __devinit mxc_cpufreq_init(struct cpufreq_policy *policy)
 {
 	int ret;
 	int i;
@@ -187,7 +187,7 @@ static struct cpufreq_driver mxc_driver = {
 	.name = "imx",
 };
 
-static int __devinit mxc_cpufreq_driver_init(void)
+static int __init mxc_cpufreq_driver_init(void)
 {
 	return cpufreq_register_driver(&mxc_driver);
 }
-- 
1.5.6.5




More information about the linux-arm-kernel mailing list