[PATCH] spi: gxp: removed unneeded call to platform_set_drvdata()

From: Andrei Coardos
Date: Mon Aug 07 2023 - 09:02:35 EST


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@xxxxxxxxx>
---
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