Skip to content

Commit 11bc26f

Browse files
richardweinbergerIngo Molnar
authored andcommitted
clocksource/drivers: Fix various !CONFIG_HAS_IOMEM build errors
Fix !CONFIG_HAS_IOMEM related build failures in three clocksource drivers. The build failures have the pattern of: drivers/clocksource/sh_cmt.c: In function ‘sh_cmt_map_memory’: drivers/clocksource/sh_cmt.c:920:2: error: implicit declaration of function ‘ioremap_nocache’ [-Werror=implicit-function-declaration] cmt->mapbase = ioremap_nocache(mem->start, resource_size(mem)); Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Cc: maxime.ripard@free-electrons.com Link: http://lkml.kernel.org/r/1427362029-6511-1-git-send-email-daniel.lezcano@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent a127d2b commit 11bc26f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/clocksource/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ config SYS_SUPPORTS_EM_STI
192192
config SH_TIMER_CMT
193193
bool "Renesas CMT timer driver" if COMPILE_TEST
194194
depends on GENERIC_CLOCKEVENTS
195+
depends on HAS_IOMEM
195196
default SYS_SUPPORTS_SH_CMT
196197
help
197198
This enables build of a clocksource and clockevent driver for
@@ -201,6 +202,7 @@ config SH_TIMER_CMT
201202
config SH_TIMER_MTU2
202203
bool "Renesas MTU2 timer driver" if COMPILE_TEST
203204
depends on GENERIC_CLOCKEVENTS
205+
depends on HAS_IOMEM
204206
default SYS_SUPPORTS_SH_MTU2
205207
help
206208
This enables build of a clockevent driver for the Multi-Function
@@ -210,6 +212,7 @@ config SH_TIMER_MTU2
210212
config SH_TIMER_TMU
211213
bool "Renesas TMU timer driver" if COMPILE_TEST
212214
depends on GENERIC_CLOCKEVENTS
215+
depends on HAS_IOMEM
213216
default SYS_SUPPORTS_SH_TMU
214217
help
215218
This enables build of a clocksource and clockevent driver for

0 commit comments

Comments
 (0)