diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2019-04-25 09:28:37 -0400 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-04-25 11:19:15 -0400 |
commit | b88c9f4129dcec941e5a26508e991c08051ed1ac (patch) | |
tree | 542130eb2c755666130508a45c8e065cdd334a68 | |
parent | ac71e68746a3286458bb5d8792111c7bc508195f (diff) |
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 <lkp@intel.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
-rw-r--r-- | include/linux/clk.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h index d8bc1a856b39..f689fc58d7be 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) | |||
811 | return true; | 811 | return true; |
812 | } | 812 | } |
813 | 813 | ||
814 | static inline int clk_set_rate_range(struct clk *clk, unsigned long min, | ||
815 | unsigned long max) | ||
816 | { | ||
817 | return 0; | ||
818 | } | ||
819 | |||
820 | static inline int clk_set_min_rate(struct clk *clk, unsigned long rate) | ||
821 | { | ||
822 | return 0; | ||
823 | } | ||
824 | |||
825 | static inline int clk_set_max_rate(struct clk *clk, unsigned long rate) | ||
826 | { | ||
827 | return 0; | ||
828 | } | ||
829 | |||
814 | static inline int clk_set_parent(struct clk *clk, struct clk *parent) | 830 | static inline int clk_set_parent(struct clk *clk, struct clk *parent) |
815 | { | 831 | { |
816 | return 0; | 832 | return 0; |