clk: imx: clk-gate2: Pass the device to the register function
Subsystems (3)
PATCH 1/1 clk: imx: clk-gate2: Pass the device to the register function
The device needs to be passed on to the clk_hw_register.
Fixes 1f9aec9662566189 ("clk: imx: clk-gate2: Switch to clk_hw based API")
Signed-off-by Abel Vesa <[email protected]>
--- drivers/clk/imx/clk-gate2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/imx/clk-gate2.c +1 -1
@@ -154,7 +154,7 @@ struct clk_hw *clk_hw_register_gate2(struct device *dev, const char *name, gate->hw.init = &init; hw = &gate->hw; - ret =clk_hw_register (NULL , hw); + ret =clk_hw_register (dev, hw);if (ret) {kfree (gate);return ERR_PTR (ret);
Signature · 1 line
2.7.4
Quoting Abel Vesa (2020-03-13 09:10:19)
Quoted 5 lines
The device needs to be passed on to the
clk_hw_register.Fixes 1f9aec9662566189 ("clk: imx: clk-gate2: Switch to clk_hw based API")Signed-off-by Abel Vesa <[email protected]>---
Reviewed-by Stephen Boyd <[email protected]>
Shawn Guo
AppliedQuoted 4 lines · Abel Vesa
The device needs to be passed on to the
clk_hw_register.Fixes 1f9aec9662566189 ("clk: imx: clk-gate2: Switch to clk_hw based API")Signed-off-by Abel Vesa <[email protected]>
Applied, thanks.