diff mbox series

spi: gxp: removed unneeded call to platform_set_drvdata()

Message ID 20230807130217.17853-1-aboutphysycs@gmail.com
State New
Headers show
Series spi: gxp: removed unneeded call to platform_set_drvdata() | expand

Commit Message

Andrei Coardos Aug. 7, 2023, 1:02 p.m. UTC
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 mbox series

Patch

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;