|
@@ -58,7 +58,7 @@ static void clk_gate_endisable(struct clk_hw *hw, int enable)
|
|
|
if (set)
|
|
|
reg |= BIT(gate->bit_idx);
|
|
|
} else {
|
|
|
- reg = readl(gate->reg);
|
|
|
+ reg = clk_readl(gate->reg);
|
|
|
|
|
|
if (set)
|
|
|
reg |= BIT(gate->bit_idx);
|
|
@@ -66,7 +66,7 @@ static void clk_gate_endisable(struct clk_hw *hw, int enable)
|
|
|
reg &= ~BIT(gate->bit_idx);
|
|
|
}
|
|
|
|
|
|
- writel(reg, gate->reg);
|
|
|
+ clk_writel(reg, gate->reg);
|
|
|
|
|
|
if (gate->lock)
|
|
|
spin_unlock_irqrestore(gate->lock, flags);
|
|
@@ -89,7 +89,7 @@ static int clk_gate_is_enabled(struct clk_hw *hw)
|
|
|
u32 reg;
|
|
|
struct clk_gate *gate = to_clk_gate(hw);
|
|
|
|
|
|
- reg = readl(gate->reg);
|
|
|
+ reg = clk_readl(gate->reg);
|
|
|
|
|
|
/* if a set bit disables this clk, flip it before masking */
|
|
|
if (gate->flags & CLK_GATE_SET_TO_DISABLE)
|