diff options
-rw-r--r-- | drivers/clk/clk.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index f3a7a4425242..a27f14116cc9 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c | |||
@@ -2664,7 +2664,10 @@ void __clk_put(struct clk *clk) | |||
2664 | clk_prepare_lock(); | 2664 | clk_prepare_lock(); |
2665 | 2665 | ||
2666 | hlist_del(&clk->child_node); | 2666 | hlist_del(&clk->child_node); |
2667 | clk_core_set_rate_nolock(clk->core, clk->core->req_rate); | 2667 | if (clk->min_rate > clk->core->req_rate || |
2668 | clk->max_rate < clk->core->req_rate) | ||
2669 | clk_core_set_rate_nolock(clk->core, clk->core->req_rate); | ||
2670 | |||
2668 | owner = clk->core->owner; | 2671 | owner = clk->core->owner; |
2669 | kref_put(&clk->core->ref, __clk_release); | 2672 | kref_put(&clk->core->ref, __clk_release); |
2670 | 2673 | ||