diff options
author | Geordan Neukum <gneukum1@gmail.com> | 2019-06-05 01:09:09 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-06 15:05:02 +0200 |
commit | d06ad04b7d8720c7793fc06d808e66ce8d3999f9 (patch) | |
tree | 7b9b96c139d731533855f6686bb9e436c3788278 /drivers/staging/kpc2000 | |
parent | 8b37865055fe26c33f01823b2a1bfa1b7c526152 (diff) | |
download | linux-d06ad04b7d8720c7793fc06d808e66ce8d3999f9.tar.gz linux-d06ad04b7d8720c7793fc06d808e66ce8d3999f9.tar.bz2 linux-d06ad04b7d8720c7793fc06d808e66ce8d3999f9.zip |
staging: kpc2000: kpc_spi: remove unnecessary struct member pin_dir
The structure kpc_spi, defined in in the kpc2000_spi driver, contains
a member named pin_dir which is never used after initialization.
Therefore, it should be removed for simplicity's sake.
Signed-off-by: Geordan Neukum <gneukum1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/kpc2000')
-rw-r--r-- | drivers/staging/kpc2000/kpc2000_spi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/kpc2000/kpc2000_spi.c b/drivers/staging/kpc2000/kpc2000_spi.c index 20c396bcd904..1d89cb3b861f 100644 --- a/drivers/staging/kpc2000/kpc2000_spi.c +++ b/drivers/staging/kpc2000/kpc2000_spi.c @@ -105,7 +105,6 @@ struct kp_spi { u64 __iomem *base; unsigned long phys; struct device *dev; - unsigned int pin_dir:1; }; struct kp_spi_controller_state { @@ -460,7 +459,6 @@ kp_spi_probe(struct platform_device *pldev) if (pldev->id != -1) { master->bus_num = pldev->id; } - kpspi->pin_dir = 0; r = platform_get_resource(pldev, IORESOURCE_MEM, 0); if (r == NULL) { |