]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
xtensa: xtfpga: fix section mismatch
authorBaruch Siach <baruch@tkos.co.il>
Mon, 27 May 2013 06:11:59 +0000 (09:11 +0300)
committerChris Zankel <chris@zankel.net>
Wed, 5 Jun 2013 17:14:20 +0000 (10:14 -0700)
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@tkos.co.il>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/platforms/xtfpga/setup.c

index 96ef8eeb064e745694d6ec7912904838364e31fe..c7ce62ff73f777cd8f36e19bb93b59d6233d18f8 100644 (file)
@@ -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