Re: [PATCH] clocksource: atmel_tcb: fix kconfig dependency

From: Arnd Bergmann
Date: Thu Feb 20 2025 - 03:55:46 EST


On Thu, Feb 20, 2025, at 09:52, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> 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 allow build-testing on all architectures but
> instead require CONFIG_OF to be present.
>

And the second I send this out, another failure pops up, please
disregard this version as the CONFIG_ARM dependency is still needed
for register_current_timer_delay().

Arnd