Provide dummy implementations of of_clk_get_parent_count() for the cases where CONFIG_OF or CONFIG_COMMON_CLK are not set. Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx> --- This is an RFC, as 1. Dummies are needed in two places, 2. We don't have any dummies yet for the !CCF case. --- include/linux/clk-provider.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 5378c2aba4d2eaec..d56bb0c6dd982c32 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -651,6 +651,10 @@ static inline struct clk *of_clk_src_onecell_get( { return ERR_PTR(-ENOENT); } +static inline int of_clk_get_parent_count(struct device_node *np) +{ + return -ENOENT; +} static inline const char *of_clk_get_parent_name(struct device_node *np, int index) { @@ -696,5 +700,10 @@ struct dentry *clk_debugfs_add_file(struct clk_hw *hw, char *name, umode_t mode, void *data, const struct file_operations *fops); #endif -#endif /* CONFIG_COMMON_CLK */ +#else /* !CONFIG_COMMON_CLK */ +static inline int of_clk_get_parent_count(struct device_node *np) +{ + return -ENOENT; +} +#endif /* !CONFIG_COMMON_CLK */ #endif /* CLK_PROVIDER_H */ -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html