linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] reset: meson: remove unneeded call to platform_set_drvdata()
@ 2023-08-07 10:54 Andrei Coardos
  2023-08-08 13:47 ` Philipp Zabel
  0 siblings, 1 reply; 2+ messages in thread
From: Andrei Coardos @ 2023-08-07 10:54 UTC (permalink / raw)
  To: linux-kernel, linux-amlogic, linux-arm-kernel
  Cc: martin.blumenstingl, jbrunet, khilman, neil.armstrong, p.zabel,
	Andrei Coardos, Alexandru Ardelean

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-meson.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/reset/reset-meson.c b/drivers/reset/reset-meson.c
index 13878ca2779d..e35c3364e722 100644
--- a/drivers/reset/reset-meson.c
+++ b/drivers/reset/reset-meson.c
@@ -129,8 +129,6 @@ static int meson_reset_probe(struct platform_device *pdev)
 	if (!data->param)
 		return -ENODEV;
 
-	platform_set_drvdata(pdev, data);
-
 	spin_lock_init(&data->lock);
 
 	data->rcdev.owner = THIS_MODULE;
-- 
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] 2+ messages in thread

* Re: [PATCH] reset: meson: remove unneeded call to platform_set_drvdata()
  2023-08-07 10:54 [PATCH] reset: meson: remove unneeded call to platform_set_drvdata() Andrei Coardos
@ 2023-08-08 13:47 ` Philipp Zabel
  0 siblings, 0 replies; 2+ messages in thread
From: Philipp Zabel @ 2023-08-08 13:47 UTC (permalink / raw)
  To: Andrei Coardos, linux-kernel, linux-amlogic, linux-arm-kernel
  Cc: martin.blumenstingl, jbrunet, khilman, neil.armstrong,
	Alexandru Ardelean

On Mo, 2023-08-07 at 13:54 +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.
> 
> Reviewed-by: Alexandru Ardelean <alex@shruggie.ro>
> Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com>

Thank you, applied to reset/next.

regards
Philipp

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

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-07 10:54 [PATCH] reset: meson: remove unneeded call to platform_set_drvdata() Andrei Coardos
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).