summaryrefslogtreecommitdiff
path: root/drivers/clk/davinci/psc.h
diff options
context:
space:
mode:
authorDavid Lechner <david@lechnology.com>2018-05-25 21:11:50 +0300
committerMichael Turquette <mturquette@baylibre.com>2018-05-30 22:48:49 +0300
commit4eff0bebf4ed5ed6d1a4dffe7dfd420b270c229a (patch)
treecbdbf8fecbeb97e530ae5d48284007a312b38e4d /drivers/clk/davinci/psc.h
parent043eaa70ad736380a631e820e32ad9176b020887 (diff)
downloadlinux-4eff0bebf4ed5ed6d1a4dffe7dfd420b270c229a.tar.xz
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 'drivers/clk/davinci/psc.h')
-rw-r--r--drivers/clk/davinci/psc.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/clk/davinci/psc.h b/drivers/clk/davinci/psc.h
index c2a7df6413fe..6a42529d31a9 100644
--- a/drivers/clk/davinci/psc.h
+++ b/drivers/clk/davinci/psc.h
@@ -94,15 +94,27 @@ struct davinci_psc_init_data {
int (*psc_init)(struct device *dev, void __iomem *base);
};
+#ifdef CONFIG_ARCH_DAVINCI_DA830
extern const struct davinci_psc_init_data da830_psc0_init_data;
extern const struct davinci_psc_init_data da830_psc1_init_data;
+#endif
+#ifdef CONFIG_ARCH_DAVINCI_DA850
extern const struct davinci_psc_init_data da850_psc0_init_data;
extern const struct davinci_psc_init_data da850_psc1_init_data;
extern const struct davinci_psc_init_data of_da850_psc0_init_data;
extern const struct davinci_psc_init_data of_da850_psc1_init_data;
+#endif
+#ifdef CONFIG_ARCH_DAVINCI_DM355
extern const struct davinci_psc_init_data dm355_psc_init_data;
+#endif
+#ifdef CONFIG_ARCH_DAVINCI_DM356
extern const struct davinci_psc_init_data dm365_psc_init_data;
+#endif
+#ifdef CONFIG_ARCH_DAVINCI_DM644x
extern const struct davinci_psc_init_data dm644x_psc_init_data;
+#endif
+#ifdef CONFIG_ARCH_DAVINCI_DM646x
extern const struct davinci_psc_init_data dm646x_psc_init_data;
+#endif
#endif /* __CLK_DAVINCI_PSC_H__ */