]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
clocksource/drivers/h8300_timer8: Separate the Kconfig option from the arch
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 9 Nov 2015 13:43:52 +0000 (14:43 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 15 Dec 2015 08:43:59 +0000 (09:43 +0100)
The current Kconfig option is the H8300 arch option. In order to comply to the
current rule, let's create a specific option for the timer8 and select it
from the arch's Kconfig.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
arch/h8300/Kconfig
drivers/clocksource/Kconfig
drivers/clocksource/Makefile

index dd3ac75776ad982973d0ae2f5f2ccd0e58a53c7e..2e20333cbce90b947f13f5a11182bedef82a4d3c 100644 (file)
@@ -17,6 +17,7 @@ config H8300
        select HAVE_MEMBLOCK
        select HAVE_DMA_ATTRS
        select CLKSRC_OF
+       select H8300_TMR8
 
 config RWSEM_GENERIC_SPINLOCK
        def_bool y
index de331b8346d8b46b28a390a6c7141bb362f35ae4..73477b5e094b2a51df2211b87ce22d642f39bc59 100644 (file)
@@ -362,6 +362,9 @@ config CLKSRC_PXA
          This enables OST0 support available on PXA and SA-11x0
          platforms.
 
+config H8300_TMR8
+        bool
+
 config H8300_TMR16
         bool
 
index 56bd16e77ae37147da0fa4e977adffcb9bc1a4c6..dc2b8997f6e637c0ae83f09b4b6bd4b92bffbf8d 100644 (file)
@@ -60,7 +60,7 @@ obj-$(CONFIG_CLKSRC_MIPS_GIC)         += mips-gic-timer.o
 obj-$(CONFIG_CLKSRC_TANGO_XTAL)                += tango_xtal.o
 obj-$(CONFIG_CLKSRC_IMX_GPT)           += timer-imx-gpt.o
 obj-$(CONFIG_ASM9260_TIMER)            += asm9260_timer.o
-obj-$(CONFIG_H8300)                    += h8300_timer8.o
+obj-$(CONFIG_H8300_TMR8)               += h8300_timer8.o
 obj-$(CONFIG_H8300_TMR16)              += h8300_timer16.o
 obj-$(CONFIG_H8300_TPU)                        += h8300_tpu.o
 obj-$(CONFIG_CLKSRC_ST_LPC)            += clksrc_st_lpc.o