linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] reset: uniphier-glue: remove unneeded call to platform_set_drvdata()
@ 2023-08-07 11:27 Andrei Coardos
  2023-08-07 11:58 ` Alexandru Ardelean
  2023-08-08 13:47 ` Philipp Zabel
  0 siblings, 2 replies; 3+ messages in thread
From: Andrei Coardos @ 2023-08-07 11:27 UTC (permalink / raw)
  To: linux-kernel, linux-arm-kernel
  Cc: mhiramat, hayashi.kunihiko, p.zabel, alex, Andrei Coardos

This function call was found to be unnecessary as there is no equivalent
platform_get_drvdata() call to access the private data of the driver. Also,
the private data is defined in this driver, so there is no risk of it being
accessed outside of this driver file.

Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com>
---
 drivers/reset/reset-uniphier-glue.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/reset/reset-uniphier-glue.c b/drivers/reset/reset-uniphier-glue.c
index 15abac9fc72c..df41b75786ad 100644
--- a/drivers/reset/reset-uniphier-glue.c
+++ b/drivers/reset/reset-uniphier-glue.c
@@ -99,8 +99,6 @@ static int uniphier_glue_reset_probe(struct platform_device *pdev)
 	priv->rdata.rcdev.of_node = dev->of_node;
 	priv->rdata.active_low = true;
 
-	platform_set_drvdata(pdev, priv);
-
 	return devm_reset_controller_register(dev, &priv->rdata.rcdev);
 }
 
-- 
2.34.1


_______________________________________________
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

* Re: [PATCH] reset: uniphier-glue: remove unneeded call to platform_set_drvdata()
  2023-08-07 11:27 [PATCH] reset: uniphier-glue: remove unneeded call to platform_set_drvdata() Andrei Coardos
@ 2023-08-07 11:58 ` Alexandru Ardelean
  2023-08-08 13:47 ` Philipp Zabel
  1 sibling, 0 replies; 3+ messages in thread
From: Alexandru Ardelean @ 2023-08-07 11:58 UTC (permalink / raw)
  To: Andrei Coardos
  Cc: linux-kernel, linux-arm-kernel, mhiramat, hayashi.kunihiko,
	p.zabel

On Mon, Aug 7, 2023 at 2:27 PM Andrei Coardos <aboutphysycs@gmail.com> wrote:
>
> This function call was found to be unnecessary as there is no equivalent
> platform_get_drvdata() call to access the private data of the driver. Also,
> the private data is defined in this driver, so there is no risk of it being
> accessed outside of this driver file.
>

Reviewed-by: Alexandru Ardelean <alex@shruggie.ro>

> Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com>
> ---
>  drivers/reset/reset-uniphier-glue.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/drivers/reset/reset-uniphier-glue.c b/drivers/reset/reset-uniphier-glue.c
> index 15abac9fc72c..df41b75786ad 100644
> --- a/drivers/reset/reset-uniphier-glue.c
> +++ b/drivers/reset/reset-uniphier-glue.c
> @@ -99,8 +99,6 @@ static int uniphier_glue_reset_probe(struct platform_device *pdev)
>         priv->rdata.rcdev.of_node = dev->of_node;
>         priv->rdata.active_low = true;
>
> -       platform_set_drvdata(pdev, priv);
> -
>         return devm_reset_controller_register(dev, &priv->rdata.rcdev);
>  }
>
> --
> 2.34.1
>

_______________________________________________
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] 3+ messages in thread

* Re: [PATCH] reset: uniphier-glue: remove unneeded call to platform_set_drvdata()
  2023-08-07 11:27 [PATCH] reset: uniphier-glue: remove unneeded call to platform_set_drvdata() Andrei Coardos
  2023-08-07 11:58 ` Alexandru Ardelean
@ 2023-08-08 13:47 ` Philipp Zabel
  1 sibling, 0 replies; 3+ messages in thread
From: Philipp Zabel @ 2023-08-08 13:47 UTC (permalink / raw)
  To: Andrei Coardos, linux-kernel, linux-arm-kernel
  Cc: mhiramat, hayashi.kunihiko, alex

On Mo, 2023-08-07 at 14:27 +0300, Andrei Coardos wrote:
> This function call was found to be unnecessary as there is no equivalent
> platform_get_drvdata() call to access the private data of the driver. Also,
> the private data is defined in this driver, so there is no risk of it being
> accessed outside of this driver file.
> 
> Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com>

Thank you, applied to reset/next.

regards
Philipp
-- 
Philipp Zabel <p.zabel@pengutronix.de>

_______________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2023-08-08 13:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-07 11:27 [PATCH] reset: uniphier-glue: remove unneeded call to platform_set_drvdata() Andrei Coardos
2023-08-07 11:58 ` Alexandru Ardelean
2023-08-08 13:47 ` 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).