History

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));

Richard Weinberger committed 11 years ago

Commit 11bc26f1 parent a127d2b1 file · +3 −0Browse files

Unified · Split

drivers/clocksource/Kconfig+3−0
@@ -192,6 +192,7 @@ config SYS_SUPPORTS_EM_STI · 191 unmodified lines
192config SH_TIMER_CMT192config SH_TIMER_CMT
193 bool "Renesas CMT timer driver" if COMPILE_TEST193 bool "Renesas CMT timer driver" if COMPILE_TEST
194 depends on GENERIC_CLOCKEVENTS194 depends on GENERIC_CLOCKEVENTS
195 depends on HAS_IOMEM
195 default SYS_SUPPORTS_SH_CMT196 default SYS_SUPPORTS_SH_CMT
196 help197 help
197 This enables build of a clocksource and clockevent driver for198 This enables build of a clocksource and clockevent driver for
@@ -201,6 +202,7 @@ config SH_TIMER_CMT · 3 unmodified lines
201config SH_TIMER_MTU2202config SH_TIMER_MTU2
202 bool "Renesas MTU2 timer driver" if COMPILE_TEST203 bool "Renesas MTU2 timer driver" if COMPILE_TEST
203 depends on GENERIC_CLOCKEVENTS204 depends on GENERIC_CLOCKEVENTS
205 depends on HAS_IOMEM
204 default SYS_SUPPORTS_SH_MTU2206 default SYS_SUPPORTS_SH_MTU2
205 help207 help
206 This enables build of a clockevent driver for the Multi-Function208 This enables build of a clockevent driver for the Multi-Function
@@ -210,6 +212,7 @@ config SH_TIMER_MTU2 · 3 unmodified lines
210config SH_TIMER_TMU212config SH_TIMER_TMU
211 bool "Renesas TMU timer driver" if COMPILE_TEST213 bool "Renesas TMU timer driver" if COMPILE_TEST
212 depends on GENERIC_CLOCKEVENTS214 depends on GENERIC_CLOCKEVENTS
215 depends on HAS_IOMEM
213 default SYS_SUPPORTS_SH_TMU216 default SYS_SUPPORTS_SH_TMU
214 help217 help
215 This enables build of a clocksource and clockevent driver for218 This enables build of a clocksource and clockevent driver for

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t