Skip to content

Commit

Permalink
clk: imx: clk-gate2: Pass the device to the register function
Browse files Browse the repository at this point in the history
The device needs to be passed on to the clk_hw_register.

Fixes: 1f9aec9 ("clk: imx: clk-gate2: Switch to clk_hw based API")
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
  • Loading branch information
Abel Vesa authored and Shawn Guo committed Mar 16, 2020
1 parent 4ae9afb commit b5881e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/imx/clk-gate2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b5881e8

Please sign in to comment.