clk: Add missing stubs for a few functions
authorDmitry Osipenko <digetx@gmail.com>
Thu, 25 Apr 2019 13:28:37 +0000 (16:28 +0300)
committerStephen Boyd <sboyd@kernel.org>
Thu, 25 Apr 2019 15:19:15 +0000 (08:19 -0700)
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>
include/linux/clk.h

index d8bc1a856b39c88c0731ceed0d93ef80a4bbb16a..f689fc58d7be3bf8f1841f532227bddce0cb5d52 100644 (file)
@@ -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;