linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] reset: lantiq: use devm_reset_controller_register()
@ 2021-05-17  3:26 Yang Yingliang
  2021-06-07  9:23 ` Philipp Zabel
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Yingliang @ 2021-05-17  3:26 UTC (permalink / raw)
  To: linux-kernel, p.zabel

Use devm_reset_controller_register() for the reset controller
registration.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 drivers/reset/reset-lantiq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/reset/reset-lantiq.c b/drivers/reset/reset-lantiq.c
index ac41d093de13..b936cfe85641 100644
--- a/drivers/reset/reset-lantiq.c
+++ b/drivers/reset/reset-lantiq.c
@@ -186,7 +186,7 @@ static int lantiq_rcu_reset_probe(struct platform_device *pdev)
 	priv->rcdev.of_xlate = lantiq_rcu_reset_xlate;
 	priv->rcdev.of_reset_n_cells = 2;
 
-	return reset_controller_register(&priv->rcdev);
+	return devm_reset_controller_register(&pdev->dev, &priv->rcdev);
 }
 
 static const struct of_device_id lantiq_rcu_reset_dt_ids[] = {
-- 
2.25.1


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

* Re: [PATCH -next] reset: lantiq: use devm_reset_controller_register()
  2021-05-17  3:26 [PATCH -next] reset: lantiq: use devm_reset_controller_register() Yang Yingliang
@ 2021-06-07  9:23 ` Philipp Zabel
  0 siblings, 0 replies; 2+ messages in thread
From: Philipp Zabel @ 2021-06-07  9:23 UTC (permalink / raw)
  To: Yang Yingliang, linux-kernel

On Mon, 2021-05-17 at 11:26 +0800, Yang Yingliang wrote:
> Use devm_reset_controller_register() for the reset controller
> registration.
> 
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
>  drivers/reset/reset-lantiq.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/reset/reset-lantiq.c b/drivers/reset/reset-lantiq.c
> index ac41d093de13..b936cfe85641 100644
> --- a/drivers/reset/reset-lantiq.c
> +++ b/drivers/reset/reset-lantiq.c
> @@ -186,7 +186,7 @@ static int lantiq_rcu_reset_probe(struct platform_device *pdev)
>  	priv->rcdev.of_xlate = lantiq_rcu_reset_xlate;
>  	priv->rcdev.of_reset_n_cells = 2;
>  
> -	return reset_controller_register(&priv->rcdev);
> +	return devm_reset_controller_register(&pdev->dev, &priv->rcdev);
>  }
>  
>  static const struct of_device_id lantiq_rcu_reset_dt_ids[] = {

Thank you, applied to reset/next.

regards
Philipp

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

end of thread, other threads:[~2021-06-07  9:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-17  3:26 [PATCH -next] reset: lantiq: use devm_reset_controller_register() Yang Yingliang
2021-06-07  9:23 ` Philipp Zabel

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).