summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-02-19 23:29:24 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2019-02-22 08:11:18 +0100
commit2614cb18799ef24fdebe54d04c3c8efb8f9c3b78 (patch)
treee39444baf1789712ba876f56da1f079103d37bb5 /include/linux
parent127a3cd41acec88051b574a4c405e3369bb4462c (diff)
downloadbarebox-2614cb18799ef24fdebe54d04c3c8efb8f9c3b78.tar.gz
barebox-2614cb18799ef24fdebe54d04c3c8efb8f9c3b78.tar.xz
clk: Drop separate definitions of clk_put()
Regardless of the value of CONFIG_HAVE_CLK, clk_put() implementation is always a no-op. Move the definition to linux/clk.h and drop the rest of the code implementing it. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/clk.h21
1 files changed, 4 insertions, 17 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h
index 978a0a8a9a..38c86e0b47 100644
--- a/include/linux/clk.h
+++ b/include/linux/clk.h
@@ -75,19 +75,6 @@ void clk_disable(struct clk *clk);
*/
unsigned long clk_get_rate(struct clk *clk);
-/**
- * clk_put - "free" the clock source
- * @clk: clock source
- *
- * Note: drivers must ensure that all clk_enable calls made on this
- * clock source are balanced by clk_disable calls prior to calling
- * this function.
- *
- * clk_put should not be called from within interrupt context.
- */
-void clk_put(struct clk *clk);
-
-
/*
* The remaining APIs are optional for machine class support.
*/
@@ -180,10 +167,6 @@ static inline unsigned long clk_get_rate(struct clk *clk)
return 0;
}
-static inline void clk_put(struct clk *clk)
-{
-}
-
static inline long clk_round_rate(struct clk *clk, unsigned long rate)
{
return 0;
@@ -195,6 +178,10 @@ static inline int clk_set_rate(struct clk *clk, unsigned long rate)
}
#endif
+static inline void clk_put(struct clk *clk)
+{
+}
+
#ifdef CONFIG_COMMON_CLK
#include <linux/list.h>