When !CONFIG_COMMON_CLK_OF_PROVIDER, we end up with a stub definition that defers from the out-of-line version. Fix that. Fixes: 054ccac22bd1 ("clk: implement of_clk_hw_{onecell,simple}_get") Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- include/linux/clk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/clk.h b/include/linux/clk.h index 333dc1b8b6c6..b555e40ec459 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -818,7 +818,7 @@ of_clk_src_simple_get(struct of_phandle_args *clkspec, void *data) { return ERR_PTR(-ENOENT); } -static inline struct clk * +static inline struct clk_hw * of_clk_hw_simple_get(struct of_phandle_args *clkspec, void *data) { return ERR_PTR(-ENOENT); -- 2.39.2