Commit 5fb2ce119c113e5c987fa81ed89e73b2653e28e4
Committed by
Olof Johansson
1 parent
b5e12229a4
Exists in
master
and in
20 other branches
ARM: Kirkwood: clk_register_gate_fn: add fn assignment
In commit: 98d9986 ARM: Kirkwood: Replace clock gating the kirkwood clock gating has been reworked. A custom variant of clock gating, that calls a custom function before gating the clock off, has been introduced. However in clk_register_gate_fn() this custom function "fn" is never assigned. This patch adds the missing fn assignment. Cc: stable <stable@vger.kernel.org> Signed-off-by: Marc Kleine-Budde <mkl@blackshift.org> Tested-by: Andrew Lunn <andrew@lunn.ch> Acked-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Olof Johansson <olof@lixom.net>
Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff
arch/arm/mach-kirkwood/common.c
... | ... | @@ -159,6 +159,7 @@ |
159 | 159 | gate_fn->gate.flags = clk_gate_flags; |
160 | 160 | gate_fn->gate.lock = lock; |
161 | 161 | gate_fn->gate.hw.init = &init; |
162 | + gate_fn->fn = fn; | |
162 | 163 | |
163 | 164 | /* ops is the gate ops, but with our disable function */ |
164 | 165 | if (clk_gate_fn_ops.disable != clk_gate_fn_disable) { |