diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index a7e5dd59e19dc544bdbb6d442c7d40d4eafa90c7..687b00d67c8a77a88ad4e135605c1ed11a319efb 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -903,7 +903,7 @@ int clk_set_rate(struct clk *clk, unsigned long rate) if (rate == clk->rate) goto out; - if ((clk->flags & CLK_SET_RATE_GATE) && __clk_is_enabled(clk)) { + if ((clk->flags & CLK_SET_RATE_GATE) && clk->prepare_count) { ret = -EBUSY; goto out; }