6793a30a06
The 'ARM: OMAP3: legacy clock data move under clk driver' patch series causes build errors when CONFIG_OMAP3 is not set: drivers/clk/ti/dpll.c: In function 'ti_clk_register_dpll': drivers/clk/ti/dpll.c:199:31: error: 'omap3_dpll_ck_ops' undeclared (first use in this function) const struct clk_ops *ops = &omap3_dpll_ck_ops; ^ drivers/clk/ti/dpll.c:199:31: note: each undeclared identifier is reported only once for each function it appears in drivers/clk/ti/dpll.c:259:10: error: 'omap3_dpll_per_ck_ops' undeclared (first use in this function) ops = &omap3_dpll_per_ck_ops; ^ drivers/built-in.o: In function `ti_clk_register_gate': drivers/clk/ti/gate.c:179: undefined reference to `clkhwops_omap3430es2_dss_usbhost_wait' drivers/clk/ti/gate.c:179: undefined reference to `clkhwops_am35xx_ipss_module_wait' -in.o: In function `ti_clk_register_interface': drivers/clk/ti/interface.c💯 undefined reference to `clkhwops_omap3430es2_iclk_hsotgusb_wait' drivers/clk/ti/interface.c💯 undefined reference to `clkhwops_omap3430es2_iclk_dss_usbhost_wait' drivers/clk/ti/interface.c💯 undefined reference to `clkhwops_omap3430es2_iclk_ssi_wait' drivers/clk/ti/interface.c💯 undefined reference to `clkhwops_am35xx_ipss_wait' drivers/built-in.o: In function `ti_clk_register_composite': :(.text+0x3da768): undefined reference to `ti_clk_build_component_gate' In order to fix that problem, this patch makes the omap3 legacy code compiled only when both CONFIG_OMAP3 and CONFIG_ATAGS are set. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Michael Turquette <mturquette@linaro.org>
18 lines
718 B
Makefile
18 lines
718 B
Makefile
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
|
|
obj-$(CONFIG_SOC_AM33XX) += $(clk-common) clk-33xx.o
|
|
obj-$(CONFIG_SOC_TI81XX) += $(clk-common) fapll.o clk-816x.o
|
|
obj-$(CONFIG_ARCH_OMAP2) += $(clk-common) interface.o clk-2xxx.o
|
|
obj-$(CONFIG_ARCH_OMAP3) += $(clk-common) interface.o \
|
|
clk-3xxx.o
|
|
obj-$(CONFIG_ARCH_OMAP4) += $(clk-common) clk-44xx.o
|
|
obj-$(CONFIG_SOC_OMAP5) += $(clk-common) clk-54xx.o
|
|
obj-$(CONFIG_SOC_DRA7XX) += $(clk-common) clk-7xx.o \
|
|
clk-dra7-atl.o
|
|
obj-$(CONFIG_SOC_AM43XX) += $(clk-common) clk-43xx.o
|
|
|
|
ifdef CONFIG_ATAGS
|
|
obj-$(CONFIG_ARCH_OMAP3) += clk-3xxx-legacy.o
|
|
endif
|