Skip to content

Commit 9f5c559

Browse files
arndbgregkh
authored andcommitted
clocksource/drivers/ixp4xx: Select TIMER_OF when needed
[ Upstream commit 7a3b875 ] 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: 40df14c ("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 Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 884d1b0 commit 9f5c559

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/arm/mach-ixp4xx/Kconfig‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ config MACH_IXP4XX_OF
1313
select I2C
1414
select I2C_IOP3XX
1515
select PCI
16-
select TIMER_OF
1716
select USE_OF
1817
help
1918
Say 'Y' here to support Device Tree-based IXP4xx platforms.

‎drivers/clocksource/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ config IXP4XX_TIMER
7979
bool "Intel XScale IXP4xx timer driver" if COMPILE_TEST
8080
depends on HAS_IOMEM
8181
select CLKSRC_MMIO
82+
select TIMER_OF if OF
8283
help
8384
Enables support for the Intel XScale IXP4xx SoC timer.
8485

0 commit comments

Comments
 (0)