From: Dmitry Osipenko Date: Thu, 25 Apr 2019 13:28:37 +0000 (+0300) Subject: clk: Add missing stubs for a few functions X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b88c9f4129dcec941e5a26508e991c08051ed1ac;p=linux.git clk: Add missing stubs for a few functions Compilation fails if any of undeclared clk_set_*() functions are in use and CONFIG_HAVE_CLK=n. Reported-by: kbuild test robot Signed-off-by: Dmitry Osipenko Signed-off-by: Stephen Boyd --- diff --git a/include/linux/clk.h b/include/linux/clk.h index d8bc1a856b39c..f689fc58d7be3 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h @@ -811,6 +811,22 @@ static inline bool clk_has_parent(struct clk *clk, struct clk *parent) return true; } +static inline int clk_set_rate_range(struct clk *clk, unsigned long min, + unsigned long max) +{ + return 0; +} + +static inline int clk_set_min_rate(struct clk *clk, unsigned long rate) +{ + return 0; +} + +static inline int clk_set_max_rate(struct clk *clk, unsigned long rate) +{ + return 0; +} + static inline int clk_set_parent(struct clk *clk, struct clk *parent) { return 0;