diff mbox series

spi: jcore: removed unneeded call to platform_set_drvdata()

Message ID 20230807131409.18389-1-aboutphysycs@gmail.com (mailing list archive)
State New, archived
Headers show
Series spi: jcore: removed unneeded call to platform_set_drvdata() | expand

Commit Message

Andrei Coardos Aug. 7, 2023, 1:14 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-jcore.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

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);