--- zzzz-none-000/linux-3.10.107/include/linux/clk.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/include/linux/clk.h 2021-11-10 11:53:56.000000000 +0000 @@ -95,7 +95,7 @@ #ifdef CONFIG_HAVE_CLK_PREPARE int clk_prepare(struct clk *clk); #else -static inline int clk_prepare(struct clk *clk) +static inline int clk_prepare(struct clk *clk __maybe_unused) { might_sleep(); return 0; @@ -114,7 +114,7 @@ #ifdef CONFIG_HAVE_CLK_PREPARE void clk_unprepare(struct clk *clk); #else -static inline void clk_unprepare(struct clk *clk) +static inline void clk_unprepare(struct clk *clk __maybe_unused) { might_sleep(); } @@ -369,15 +369,16 @@ struct clk *of_clk_get_by_name(struct device_node *np, const char *name); struct clk *of_clk_get_from_provider(struct of_phandle_args *clkspec); #else -static inline struct clk *of_clk_get(struct device_node *np, int index) +static inline struct clk *of_clk_get(struct device_node *np __maybe_unused, int index __maybe_unused) { return ERR_PTR(-ENOENT); } -static inline struct clk *of_clk_get_by_name(struct device_node *np, - const char *name) +static inline struct clk *of_clk_get_by_name(struct device_node *np __maybe_unused, const char *name __maybe_unused) { return ERR_PTR(-ENOENT); } #endif +struct clk *__clk_lookup(const char *name); + #endif