All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rtc: armada38x: remove unneeded call to platform_set_drvdata()
@ 2023-08-07 12:48 ` Andrei Coardos
  0 siblings, 0 replies; 6+ messages in thread
From: Andrei Coardos @ 2023-08-07 12:48 UTC (permalink / raw)
  To: linux-kernel, linux-rtc, linux-arm-kernel
  Cc: alexandre.belloni, a.zummo, sebastian.hesselbarth,
	gregory.clement, andrew, 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/rtc/rtc-armada38x.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/rtc/rtc-armada38x.c b/drivers/rtc/rtc-armada38x.c
index b4139c200676..5ed028429565 100644
--- a/drivers/rtc/rtc-armada38x.c
+++ b/drivers/rtc/rtc-armada38x.c
@@ -527,7 +527,6 @@ static __init int armada38x_rtc_probe(struct platform_device *pdev)
 		dev_warn(&pdev->dev, "Interrupt not available.\n");
 		rtc->irq = -1;
 	}
-	platform_set_drvdata(pdev, rtc);
 
 	if (rtc->irq != -1)
 		device_init_wakeup(&pdev->dev, 1);
-- 
2.34.1


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

end of thread, other threads:[~2023-08-07 22:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-07 12:48 [PATCH] rtc: armada38x: remove unneeded call to platform_set_drvdata() Andrei Coardos
2023-08-07 12:48 ` Andrei Coardos
2023-08-07 17:32 ` Alexandru Ardelean
2023-08-07 17:32   ` Alexandru Ardelean
2023-08-07 22:36 ` Russell King (Oracle)
2023-08-07 22:36   ` Russell King (Oracle)

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.