Compile testing drivers using of_clk_get_from_provider, but without CONFIG_COMMON_CLK currently fails, so add a stub definition to fix this. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- include/linux/clk.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/clk.h b/include/linux/clk.h index ae03dcfdb2a2..7e777b67f486 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -846,6 +846,12 @@ static inline struct clk *of_clk_get_by_name(struct device_node *np, { return ERR_PTR(-ENOENT); } + +static inline struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec) +{ + return ERR_PTR(-ENOENT); +} + static inline unsigned int of_clk_get_parent_count(struct device_node *np) { return 0; -- 2.39.5