* [PATCH] clk: imx: clk-gate2: Pass the device to the register function
@ 2020-03-13 16:10 ` Abel Vesa
0 siblings, 0 replies; 6+ 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] 6+ messages in thread
* [PATCH] clk: imx: clk-gate2: Pass the device to the register function
@ 2020-03-13 16:10 ` Abel Vesa
0 siblings, 0 replies; 6+ 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] 6+ messages in thread
* Re: [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
-1 siblings, 0 replies; 6+ 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] 6+ messages in thread
* Re: [PATCH] clk: imx: clk-gate2: Pass the device to the register function
@ 2020-03-13 20:28 ` Stephen Boyd
0 siblings, 0 replies; 6+ 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: Linux Kernel Mailing List, Abel Vesa, NXP Linux Team,
linux-arm-kernel, linux-clk
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>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] clk: imx: clk-gate2: Pass the device to the register function
2020-03-13 16:10 ` Abel Vesa
@ 2020-03-16 1:39 ` Shawn Guo
-1 siblings, 0 replies; 6+ 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] 6+ messages in thread
* Re: [PATCH] clk: imx: clk-gate2: Pass the device to the register function
@ 2020-03-16 1:39 ` Shawn Guo
0 siblings, 0 replies; 6+ messages in thread
From: Shawn Guo @ 2020-03-16 1:39 UTC (permalink / raw)
To: Abel Vesa
Cc: Peng Fan, Stephen Boyd, Mike Turquette,
Linux Kernel Mailing List, NXP Linux Team, Sascha Hauer,
Fabio Estevam, linux-clk, 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.
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-03-16 1:39 UTC | newest]
Thread overview: 6+ 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 16:10 ` Abel Vesa
2020-03-13 20:28 ` Stephen Boyd
2020-03-13 20:28 ` Stephen Boyd
2020-03-16 1:39 ` Shawn Guo
2020-03-16 1:39 ` Shawn Guo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.