Skip to content

Commit

Permalink
clocksource/drivers/fsl_ftm_timer: Fix CLKSRC_MMIO dependency
Browse files Browse the repository at this point in the history
Select CLKSRC_MMIO when FSL_FTM_TIMER is enabled. Otherwise it fails to
compile on i386 with COMPILE_TEST=y.

"
on i386:
when CLKSRC_MMIO is not enabled:

drivers/built-in.o: In function `ftm_timer_init':
fsl_ftm_timer.c:(.init.text+0x6842): undefined reference to `clocksource_mmio_readl_up'
fsl_ftm_timer.c:(.init.text+0x6855): undefined reference to `clocksource_mmio_init'
"

Reported-by: Randy Dunlap <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
  • Loading branch information
dlezcano committed Jan 11, 2016
1 parent 863ee05 commit 03724ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/clocksource/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ config CLKSRC_SAMSUNG_PWM
config FSL_FTM_TIMER
bool "Freescale FlexTimer Module driver" if COMPILE_TEST
depends on GENERIC_CLOCKEVENTS
select CLKSRC_MMIO
help
Support for Freescale FlexTimer Module (FTM) timer.

Expand Down

0 comments on commit 03724ac

Please sign in to comment.