Skip to content

Commit b823905

Browse files
arndbdlezcano
authored andcommitted
clocksource/drivers/atmel_tcb: Fix kconfig dependency
Build-testing this driver on arm without CONFIG_OF produces a warning: drivers/clocksource/timer-atmel-tcb.c:368:34: error: 'atmel_tcb_of_match' defined but not used [-Werror=unused-const-variable=] 368 | static const struct of_device_id atmel_tcb_of_match[] = { | ^~~~~~~~~~~~~~~~~~ Change the dependency to require CONFIG_OF for build testing to avoid the warning. Testing remains possible on all architectures as CONFIG_OF is user-selectable. Cc: Nicolas Ferre <[email protected]> Cc: Claudiu Beznea <[email protected]> Reviewed-by: Alexandre Belloni <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
1 parent cec32ac commit b823905

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/clocksource/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ config ATMEL_ST
437437

438438
config ATMEL_TCB_CLKSRC
439439
bool "Atmel TC Block timer driver" if COMPILE_TEST
440-
depends on ARM && HAS_IOMEM
441-
select TIMER_OF if OF
440+
depends on ARM && OF && HAS_IOMEM
441+
select TIMER_OF
442442
help
443443
Support for Timer Counter Blocks on Atmel SoCs.
444444

0 commit comments

Comments
 (0)