clocksource/drivers/timer-microchip-pit64b: Select CONFIG_TIMER_OF
authorMichael Ellerman <mpe@ellerman.id.au>
Sun, 26 Apr 2020 12:43:56 +0000 (22:43 +1000)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 27 Apr 2020 06:59:50 +0000 (08:59 +0200)
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: 625022a5f160 ("clocksource/drivers/timer-microchip-pit64b: Add Microchip PIT64B support")
Cc: stable@vger.kernel.org # v5.6+
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200426124356.3929682-1-mpe@ellerman.id.au
drivers/clocksource/Kconfig

index f2142e6bbea369e8a7e521a8a17390c4b3f484dc..f225c27b70f74fb807a16082f7283842ce037e87 100644 (file)
@@ -709,6 +709,7 @@ config MICROCHIP_PIT64B
        bool "Microchip PIT64B support"
        depends on OF || COMPILE_TEST
        select CLKSRC_MMIO
+       select TIMER_OF
        help
          This option enables Microchip PIT64B timer for Atmel
          based system. It supports the oneshot, the periodic