[Linux-Xtensa] [PATCH 4/7] xtensa: xtfpga: fix section mismatch

Max Filippov jcmvbkbc at gmail.com
Mon May 27 09:21:47 PDT 2013


From: Baruch Siach <baruch at tkos.co.il>

platform_calibrate_ccount() calls update_clock_frequency() which is in .init
section. However, platform_calibrate_ccount() itself is only called from .init
(i.e., time_init()).

Signed-off-by: Baruch Siach <baruch at tkos.co.il>
Signed-off-by: Max Filippov <jcmvbkbc at gmail.com>
---
 arch/xtensa/platforms/xtfpga/setup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/xtensa/platforms/xtfpga/setup.c b/arch/xtensa/platforms/xtfpga/setup.c
index 96ef8ee..c7ce62f 100644
--- a/arch/xtensa/platforms/xtfpga/setup.c
+++ b/arch/xtensa/platforms/xtfpga/setup.c
@@ -163,7 +163,7 @@ void platform_heartbeat(void)
 
 #ifdef CONFIG_XTENSA_CALIBRATE_CCOUNT
 
-void platform_calibrate_ccount(void)
+void __init platform_calibrate_ccount(void)
 {
 	long clk_freq = 0;
 #ifdef CONFIG_OF
-- 
1.7.7.6



More information about the linux-xtensa mailing list