Skip to content

Commit 25c2a07

Browse files
hcodinabebarino
authored andcommitted
clk: lan966x: Fix the lan966x clock gate register address
The register address used for the clock gate register is the base register address coming from first reg map (ie. the generic clock registers) instead of the second reg map defining the clock gate register. Use the correct clock gate register address. Fixes: 5ad5915 ("clk: lan966x: Extend lan966x clock driver for clock gating support") Signed-off-by: Herve Codina <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Claudiu Beznea <[email protected]> Tested-by: Michael Walle <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent a79e69c commit 25c2a07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/clk-lan966x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ static int lan966x_gate_clk_register(struct device *dev,
213213

214214
hw_data->hws[i] =
215215
devm_clk_hw_register_gate(dev, clk_gate_desc[idx].name,
216-
"lan966x", 0, base,
216+
"lan966x", 0, gate_base,
217217
clk_gate_desc[idx].bit_idx,
218218
0, &clk_gate_lock);
219219

0 commit comments

Comments
 (0)