clocksource/drivers/ixp4xx: Select TIMER_OF when needed
authorArnd Bergmann <arnd@arndb.de>
Sun, 3 Jan 2021 13:59:24 +0000 (14:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Mar 2021 10:37:57 +0000 (11:37 +0100)
commit9f5c5595cf13d9397d1af82d057edfed13f0dbaa
tree601e0f3b2dbb607edfb1d45928171d8138e0febb
parent884d1b0d51e0772a09b24e8f6ce47330c6e7f91b
clocksource/drivers/ixp4xx: Select TIMER_OF when needed

[ Upstream commit 7a3b8758bd6e45f7b671723b5c9fa2b69d0787ae ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/mach-ixp4xx/Kconfig
drivers/clocksource/Kconfig