[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230807130217.17853-1-aboutphysycs@gmail.com>
Date: Mon, 7 Aug 2023 16:02:17 +0300
From: Andrei Coardos <aboutphysycs@...il.com>
To: linux-kernel@...r.kernel.org, linux-spi@...r.kernel.org
Cc: broonie@...nel.org, nick.hawkins@....com, verdun@....com,
alex@...uggie.ro, Andrei Coardos <aboutphysycs@...il.com>
Subject: [PATCH] spi: gxp: removed unneeded call to platform_set_drvdata()
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@...il.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
Powered by blists - more mailing lists