diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-09-06 03:38:45 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-09-06 12:35:11 +0200 |
commit | 48c29d0d27fbbb4c78d3c14c50067d7e8919ed95 (patch) | |
tree | 749fca8402809382056478924f187a2fe546ad94 /drivers/spi/spi-gpio.c | |
parent | spi: Do not print a message if spi_controller_{suspend,resume}() fails (diff) | |
download | linux-48c29d0d27fbbb4c78d3c14c50067d7e8919ed95.tar.xz linux-48c29d0d27fbbb4c78d3c14c50067d7e8919ed95.zip |
spi: spi-gpio: Remove set but not used variable 'pdata'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/spi/spi-gpio.c: In function 'spi_gpio_remove':
drivers/spi/spi-gpio.c:450:33: warning:
variable 'pdata' set but not used [-Wunused-but-set-variable]
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-gpio.c')
-rw-r--r-- | drivers/spi/spi-gpio.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-gpio.c b/drivers/spi/spi-gpio.c index 0626e6e3ea0c..d0c6d71b6c0f 100644 --- a/drivers/spi/spi-gpio.c +++ b/drivers/spi/spi-gpio.c @@ -447,10 +447,8 @@ static int spi_gpio_probe(struct platform_device *pdev) static int spi_gpio_remove(struct platform_device *pdev) { struct spi_gpio *spi_gpio; - struct spi_gpio_platform_data *pdata; spi_gpio = platform_get_drvdata(pdev); - pdata = dev_get_platdata(&pdev->dev); /* stop() unregisters child devices too */ spi_bitbang_stop(&spi_gpio->bitbang); |