summaryrefslogtreecommitdiffstats
path: root/include/linux/clk/davinci.h
diff options
context:
space:
mode:
authorDavid Lechner <david@lechnology.com>2018-05-25 13:11:50 -0500
committerMichael Turquette <mturquette@baylibre.com>2018-05-30 12:48:49 -0700
commit4eff0bebf4ed5ed6d1a4dffe7dfd420b270c229a (patch)
treecbdbf8fecbeb97e530ae5d48284007a312b38e4d /include/linux/clk/davinci.h
parent043eaa70ad736380a631e820e32ad9176b020887 (diff)
downloadlinux-4eff0bebf4ed5ed6d1a4dffe7dfd420b270c229a.tar.gz
linux-4eff0bebf4ed5ed6d1a4dffe7dfd420b270c229a.tar.bz2
linux-4eff0bebf4ed5ed6d1a4dffe7dfd420b270c229a.zip
clk: davinci: Fix link errors when not all SoCs are enabled
This fixes linker errors due to undefined symbols when one or more of the TI DaVinci SoCs is not enabled in the kernel config. Signed-off-by: David Lechner <david@lechnology.com> Signed-off-by: Michael Turquette <mturquette@baylibre.com> Link: lkml.kernel.org/r/20180525181150.17873-10-david@lechnology.com
Diffstat (limited to 'include/linux/clk/davinci.h')
-rw-r--r--include/linux/clk/davinci.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/include/linux/clk/davinci.h b/include/linux/clk/davinci.h
index 62764c5cc86e..8a7b5cd7eac0 100644
--- a/include/linux/clk/davinci.h
+++ b/include/linux/clk/davinci.h
@@ -13,17 +13,28 @@
/* function for registering clocks in early boot */
+#ifdef CONFIG_ARCH_DAVINCI_DA830
int da830_pll_init(struct device *dev, void __iomem *base, struct regmap *cfgchip);
+#endif
+#ifdef CONFIG_ARCH_DAVINCI_DA850
int da850_pll0_init(struct device *dev, void __iomem *base, struct regmap *cfgchip);
+#endif
+#ifdef CONFIG_ARCH_DAVINCI_DM355
int dm355_pll1_init(struct device *dev, void __iomem *base, struct regmap *cfgchip);
+int dm355_psc_init(struct device *dev, void __iomem *base);
+#endif
+#ifdef CONFIG_ARCH_DAVINCI_DM365
int dm365_pll1_init(struct device *dev, void __iomem *base, struct regmap *cfgchip);
int dm365_pll2_init(struct device *dev, void __iomem *base, struct regmap *cfgchip);
-int dm644x_pll1_init(struct device *dev, void __iomem *base, struct regmap *cfgchip);
-int dm646x_pll1_init(struct device *dev, void __iomem *base, struct regmap *cfgchip);
-
-int dm355_psc_init(struct device *dev, void __iomem *base);
int dm365_psc_init(struct device *dev, void __iomem *base);
+#endif
+#ifdef CONFIG_ARCH_DAVINCI_DM644x
+int dm644x_pll1_init(struct device *dev, void __iomem *base, struct regmap *cfgchip);
int dm644x_psc_init(struct device *dev, void __iomem *base);
+#endif
+#ifdef CONFIG_ARCH_DAVINCI_DM646x
+int dm646x_pll1_init(struct device *dev, void __iomem *base, struct regmap *cfgchip);
int dm646x_psc_init(struct device *dev, void __iomem *base);
+#endif
#endif /* __LINUX_CLK_DAVINCI_PLL_H___ */