linux-kernel.vger.kernel.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: NXP Linux Team, linux-clk, Linux Kernel Mailing List,
	linux-arm-kernel, 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 <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


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

* Re: [PATCH] clk: imx: clk-gate2: Pass the device to the register function
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Boyd @ 2020-03-13 20:28 UTC (permalink / raw)
  To: Abel Vesa, Fabio Estevam, Mike Turquette, Peng Fan, Sascha Hauer,
	Shawn Guo
  Cc: NXP Linux Team, linux-clk, Linux Kernel Mailing List,
	linux-arm-kernel, Abel Vesa

Quoting Abel Vesa (2020-03-13 09:10:19)
> 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>
> ---

Reviewed-by: Stephen Boyd <sboyd@kernel.org>

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

* Re: [PATCH] clk: imx: clk-gate2: Pass the device to the register function
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2020-03-16  1:39 UTC (permalink / raw)
  To: Abel Vesa
  Cc: Mike Turquette, Stephen Boyd, Sascha Hauer, Fabio Estevam,
	Peng Fan, NXP Linux Team, linux-clk, Linux Kernel Mailing List,
	linux-arm-kernel

On Fri, Mar 13, 2020 at 06:10:19PM +0200, Abel Vesa wrote:
> 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>

Applied, thanks.

^ permalink raw reply	[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).