mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] spi: gxp: removed unneeded call to platform_set_drvdata()
@ 2023-08-07 13:02 Andrei Coardos
  2023-08-07 13:27 ` Mark Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Andrei Coardos @ 2023-08-07 13:02 UTC (permalink / raw)
  To: linux-kernel, linux-spi
  Cc: broonie, nick.hawkins, verdun, 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-gxp.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/spi/spi-gxp.c b/drivers/spi/spi-gxp.c
index 684d63f402f3..6261d9f036bc 100644
--- a/drivers/spi/spi-gxp.c
+++ b/drivers/spi/spi-gxp.c
@@ -264,7 +264,6 @@ static int gxp_spifi_probe(struct platform_device *pdev)
 
 	spifi = spi_controller_get_devdata(ctlr);
 
-	platform_set_drvdata(pdev, spifi);
 	spifi->data = data;
 	spifi->dev = dev;
 
-- 
2.34.1


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

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

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-07 13:02 [PATCH] spi: gxp: removed unneeded call to platform_set_drvdata() Andrei Coardos
2023-08-07 13:27 ` Mark Brown
2023-08-07 17:38   ` Alexandru Ardelean
2023-08-07 18:17     ` Mark Brown
2023-08-07 18:57       ` Alexandru Ardelean

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®