clk: mmp: Convert to clk_hw based provider APIs
We're removing struct clk from the clk provider API, so switch this code to using the clk_hw based provider APIs. Cc: Chao Xie <chao.xie@marvell.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
This commit is contained in:

committed by
Michael Turquette

parent
2f508a955a
commit
aef28cb6b3
@@ -27,7 +27,6 @@
|
||||
static int mmp_clk_gate_enable(struct clk_hw *hw)
|
||||
{
|
||||
struct mmp_clk_gate *gate = to_clk_mmp_gate(hw);
|
||||
struct clk *clk = hw->clk;
|
||||
unsigned long flags = 0;
|
||||
unsigned long rate;
|
||||
u32 tmp;
|
||||
@@ -44,7 +43,7 @@ static int mmp_clk_gate_enable(struct clk_hw *hw)
|
||||
spin_unlock_irqrestore(gate->lock, flags);
|
||||
|
||||
if (gate->flags & MMP_CLK_GATE_NEED_DELAY) {
|
||||
rate = __clk_get_rate(clk);
|
||||
rate = clk_hw_get_rate(hw);
|
||||
/* Need delay 2 cycles. */
|
||||
udelay(2000000/rate);
|
||||
}
|
||||
|
Reference in New Issue
Block a user