Commit 25259f7a authored by Michael Ellerman's avatar Michael Ellerman Committed by Daniel Lezcano

clocksource/drivers/timer-microchip-pit64b: Select CONFIG_TIMER_OF

This driver is an OF driver, it depends on OF, and uses
TIMER_OF_DECLARE, so it should select CONFIG_TIMER_OF.

Without CONFIG_TIMER_OF enabled this can lead to warnings such as:

  powerpc-linux-ld: warning: orphan section `__timer_of_table' from
  `drivers/clocksource/timer-microchip-pit64b.o' being placed in
  section `__timer_of_table'.

Because TIMER_OF_TABLES in vmlinux.lds.h doesn't emit anything into
the linker script when CONFIG_TIMER_OF is not enabled.

Fixes: 625022a5 ("clocksource/drivers/timer-microchip-pit64b: Add Microchip PIT64B support")
Cc: stable@vger.kernel.org # v5.6+
Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200426124356.3929682-1-mpe@ellerman.id.au
parent 8c42c0f7
...@@ -709,6 +709,7 @@ config MICROCHIP_PIT64B ...@@ -709,6 +709,7 @@ config MICROCHIP_PIT64B
bool "Microchip PIT64B support" bool "Microchip PIT64B support"
depends on OF || COMPILE_TEST depends on OF || COMPILE_TEST
select CLKSRC_MMIO select CLKSRC_MMIO
select TIMER_OF
help help
This option enables Microchip PIT64B timer for Atmel This option enables Microchip PIT64B timer for Atmel
based system. It supports the oneshot, the periodic based system. It supports the oneshot, the periodic
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment