clk: ti: Allow COMPILE_TEST to build selected drivers
authorTony Lindgren <tony@atomide.com>
Fri, 26 Feb 2016 17:45:03 +0000 (09:45 -0800)
committerMichael Turquette <mturquette@baylibre.com>
Wed, 2 Mar 2016 00:21:25 +0000 (16:21 -0800)
The arch independent drivers can be build testeed with
COMPILE_TEST. Let's allow that for drivers/clk/ti.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
drivers/clk/Makefile
drivers/clk/ti/Makefile

index b038e36660587aaf97d4c3b41de17d1175635694..45939a181dbedba10ea59a75751e17fa8e0e4ad1 100644 (file)
@@ -78,7 +78,7 @@ obj-$(CONFIG_PLAT_SPEAR)              += spear/
 obj-$(CONFIG_ARCH_STI)                 += st/
 obj-$(CONFIG_ARCH_SUNXI)               += sunxi/
 obj-$(CONFIG_ARCH_TEGRA)               += tegra/
-obj-$(CONFIG_ARCH_OMAP2PLUS)           += ti/
+obj-y                                  += ti/
 obj-$(CONFIG_ARCH_U8500)               += ux500/
 obj-$(CONFIG_COMMON_CLK_VERSATILE)     += versatile/
 obj-$(CONFIG_X86)                      += x86/
index dfe91d721bb15b06a9ee571518fdd6548843bc71..0deac98210392c8098e281c980cad5d271c2c992 100644 (file)
@@ -1,3 +1,5 @@
+ifeq ($(CONFIG_ARCH_OMAP2PLUS), y)
+
 obj-y                                  += clk.o autoidle.o clockdomain.o
 clk-common                             = dpll.o composite.o divider.o gate.o \
                                          fixed-factor.o mux.o apll.o \
@@ -19,4 +21,6 @@ ifdef CONFIG_ATAGS
 obj-$(CONFIG_ARCH_OMAP3)                += clk-3xxx-legacy.o
 endif
 
+endif  # CONFIG_ARCH_OMAP2PLUS
+
 obj-$(CONFIG_COMMON_CLK_TI_ADPLL)      += adpll.o