Skip to content

Commit

Permalink
xtensa: xtfpga: fix section mismatch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Baruch Siach authored and Chris Zankel committed Jun 5, 2013
1 parent 214fe80 commit 54c0af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/xtensa/platforms/xtfpga/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 54c0af9

Please sign in to comment.