* [PATCH] spi: jcore: removed unneeded call to platform_set_drvdata()
@ 2023-08-07 13:14 Andrei Coardos
0 siblings, 0 replies; only message in thread
From: Andrei Coardos @ 2023-08-07 13:14 UTC (permalink / raw)
To: linux-kernel, linux-spi; +Cc: broonie, 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/spi/spi-jcore.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/spi/spi-jcore.c b/drivers/spi/spi-jcore.c
index c42a3358e8c9..f627877ae85b 100644
--- a/drivers/spi/spi-jcore.c
+++ b/drivers/spi/spi-jcore.c
@@ -162,7 +162,6 @@ static int jcore_spi_probe(struct platform_device *pdev)
hw = spi_master_get_devdata(master);
hw->master = master;
- platform_set_drvdata(pdev, hw);
/* Find and map our resources */
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
--
2.34.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-07 13:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-07 13:14 [PATCH] spi: jcore: removed unneeded call to platform_set_drvdata() Andrei Coardos
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).