diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-09-13 03:22:01 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-09-13 14:35:20 +0200 |
commit | 37a1aa88f98d688a5d9119fbdd1086ae4f171d1d (patch) | |
tree | 0d56aaa9cb6a9d5a9ca7735aec480d9472fad2e0 /drivers/spi | |
parent | spi: davinci: Remove chip select GPIO pdata (diff) | |
download | linux-37a1aa88f98d688a5d9119fbdd1086ae4f171d1d.tar.xz linux-37a1aa88f98d688a5d9119fbdd1086ae4f171d1d.zip |
spi: davinci: remove set but not used variable 'pdata'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/spi/spi-davinci.c: In function 'davinci_spi_setup':
drivers/spi/spi-davinci.c:422:36: 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')
-rw-r--r-- | drivers/spi/spi-davinci.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-davinci.c b/drivers/spi/spi-davinci.c index d502cf504deb..ce0e67d4bfb9 100644 --- a/drivers/spi/spi-davinci.c +++ b/drivers/spi/spi-davinci.c @@ -419,13 +419,11 @@ static int davinci_spi_setup(struct spi_device *spi) { int retval = 0; struct davinci_spi *dspi; - struct davinci_spi_platform_data *pdata; struct spi_master *master = spi->master; struct device_node *np = spi->dev.of_node; bool internal_cs = true; dspi = spi_master_get_devdata(spi->master); - pdata = &dspi->pdata; if (!(spi->mode & SPI_NO_CS)) { if (np && (master->cs_gpios != NULL) && (spi->cs_gpio >= 0)) { |