[PATCH] spi: gpio: Drop unused pdev field in struct spi_gpio

From: Andrey Smirnov
Date: Wed Apr 03 2019 - 00:01:30 EST


There's no code using 'pdev' field in struct spi_gpio. Drop it.

Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx>
Cc: Mark Brown <broonie@xxxxxxxxxx>
Cc: Chris Healy <cphealy@xxxxxxxxx>
Cc: linux-spi@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx
Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
---
drivers/spi/spi-gpio.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/drivers/spi/spi-gpio.c b/drivers/spi/spi-gpio.c
index 4b2a80abf36e..5ac9ae192ddf 100644
--- a/drivers/spi/spi-gpio.c
+++ b/drivers/spi/spi-gpio.c
@@ -41,7 +41,6 @@

struct spi_gpio {
struct spi_bitbang bitbang;
- struct platform_device *pdev;
struct gpio_desc *sck;
struct gpio_desc *miso;
struct gpio_desc *mosi;
@@ -390,8 +389,6 @@ static int spi_gpio_probe(struct platform_device *pdev)

platform_set_drvdata(pdev, spi_gpio);

- spi_gpio->pdev = pdev;
-
status = spi_gpio_request(dev, spi_gpio);
if (status)
return status;
--
2.20.1