clk: Add missing stubs for a few functions [Linux 5.1]

clk: Add missing stubs for a few functions [Linux 5.1]

This Linux kernel change "clk: Add missing stubs for a few functions" is included in the Linux 5.1 release. This change is authored by Dmitry Osipenko <digetx [at] gmail.com> on Thu Apr 25 16:28:37 2019 +0300. The commit for this change in Linux stable tree is b88c9f4 (patch).

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 <[email protected]>
Signed-off-by: Dmitry Osipenko <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>

There are 16 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 include/linux/clk.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/include/linux/clk.h b/include/linux/clk.h
index d8bc1a8..f689fc5 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;

Leave a Reply

Your email address will not be published. Required fields are marked *