Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clocksource/drivers/ixp4xx: Select TIMER_OF when needed

Compile-testing the ixp4xx timer with CONFIG_OF enabled but
CONFIG_TIMER_OF disabled leads to a harmless warning:

arm-linux-gnueabi-ld: warning: orphan section `__timer_of_table' from `drivers/clocksource/timer-ixp4xx.o' being placed in section `__timer_of_table'

Move the select statement from the platform code into the driver
so it always gets enabled in configurations that rely on it.

Fixes: 40df14cc5cc0 ("clocksource/drivers/ixp4xx: Add OF initialization support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210103135955.3808976-1-arnd@kernel.org

authored by

Arnd Bergmann and committed by
Daniel Lezcano
7a3b8758 e3fab2f3

+1 -1
-1
arch/arm/mach-ixp4xx/Kconfig
··· 13 13 select I2C 14 14 select I2C_IOP3XX 15 15 select PCI 16 - select TIMER_OF 17 16 select USE_OF 18 17 help 19 18 Say 'Y' here to support Device Tree-based IXP4xx platforms.
+1
drivers/clocksource/Kconfig
··· 79 79 bool "Intel XScale IXP4xx timer driver" if COMPILE_TEST 80 80 depends on HAS_IOMEM 81 81 select CLKSRC_MMIO 82 + select TIMER_OF if OF 82 83 help 83 84 Enables support for the Intel XScale IXP4xx SoC timer. 84 85