Skip to content

Commit

Permalink
clocksource: Kconfig: Let EM_TIMER_STI depend on HAS_IOMEM
Browse files Browse the repository at this point in the history
In 'em_sti.c', it will call devm_ioremap_resource() which need
HAS_IOMEM. So need let EM_TIMER_STI depend on HAS_IOMEM, too.

The related error (with allmodconfig under score):

  LD      init/built-in.o
em_sti.c:(.text.em_sti_probe+0x84): undefined reference to `devm_ioremap_resource'
make: *** [vmlinux] Error 1

Signed-off-by: Chen Gang <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
  • Loading branch information
Chen-Gang authored and dlezcano committed Jul 23, 2014
1 parent 22c4e02 commit 40c9631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clocksource/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ config SH_TIMER_TMU

config EM_TIMER_STI
bool "Renesas STI timer driver" if COMPILE_TEST
depends on GENERIC_CLOCKEVENTS
depends on GENERIC_CLOCKEVENTS && HAS_IOMEM
default SYS_SUPPORTS_EM_STI
help
This enables build of a clocksource and clockevent driver for
Expand Down

0 comments on commit 40c9631

Please sign in to comment.