summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/platforms
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2013-05-27 09:11:59 +0300
committerChris Zankel <chris@zankel.net>2013-06-05 10:14:20 -0700
commit54c0af9f1a1bfe9639666aea789dae6a37a741cf (patch)
tree71be8c8aaed0e1f4b4e0a93fbbec6179fecd3824 /arch/xtensa/platforms
parent214fe80fcba6df6be28d6ea66762d203d84842c4 (diff)
downloadblackbird-op-linux-54c0af9f1a1bfe9639666aea789dae6a37a741cf.tar.gz
blackbird-op-linux-54c0af9f1a1bfe9639666aea789dae6a37a741cf.zip
xtensa: xtfpga: fix section mismatch
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>
Diffstat (limited to 'arch/xtensa/platforms')
-rw-r--r--arch/xtensa/platforms/xtfpga/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/platforms/xtfpga/setup.c b/arch/xtensa/platforms/xtfpga/setup.c
index 96ef8eeb064e..c7ce62ff73f7 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
OpenPOWER on IntegriCloud