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@xxxxxxxxx> --- drivers/clk/clkdev.c | 5 ----- include/linux/clk.h | 21 ++++----------------- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkdev.c index abdc41527..f67a5c4d9 100644 --- a/drivers/clk/clkdev.c +++ b/drivers/clk/clkdev.c @@ -189,11 +189,6 @@ struct clk *clk_get(struct device_d *dev, const char *con_id) } EXPORT_SYMBOL(clk_get); -void clk_put(struct clk *clk) -{ -} -EXPORT_SYMBOL(clk_put); - void clkdev_add(struct clk_lookup *cl) { if (cl->dev_id) diff --git a/include/linux/clk.h b/include/linux/clk.h index 978a0a8a9..38c86e0b4 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> -- 2.20.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox