linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: imx: clk-gate2: Pass the device to the register function
@ 2020-03-13 16:10 Abel Vesa
  2020-03-13 20:28 ` Stephen Boyd
  2020-03-16  1:39 ` Shawn Guo
  0 siblings, 2 replies; 3+ messages in thread
From: Abel Vesa @ 2020-03-13 16:10 UTC (permalink / raw)
  To: Mike Turquette, Shawn Guo, Stephen Boyd, Sascha Hauer,
	Fabio Estevam, Peng Fan
  Cc: Linux Kernel Mailing List, Abel Vesa, NXP Linux Team,
	linux-arm-kernel, linux-clk

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 <abel.vesa@nxp.com>
---
 drivers/clk/imx/clk-gate2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c
index 72a7698..ce0060e 100644
--- a/drivers/clk/imx/clk-gate2.c
+++ b/drivers/clk/imx/clk-gate2.c
@@ -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);
-- 
2.7.4


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-16  1:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-13 16:10 [PATCH] clk: imx: clk-gate2: Pass the device to the register function Abel Vesa
2020-03-13 20:28 ` Stephen Boyd
2020-03-16  1:39 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).