diff options
author | Geordan Neukum <gneukum1@gmail.com> | 2019-06-05 01:09:08 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-06 15:05:01 +0200 |
commit | 8b37865055fe26c33f01823b2a1bfa1b7c526152 (patch) | |
tree | 2693f633fac8c45a9d7060978dedf72013077935 /drivers/staging/kpc2000 | |
parent | fa6a80ca5a6052d07ca9582759116bcea0dd9ad6 (diff) | |
download | linux-8b37865055fe26c33f01823b2a1bfa1b7c526152.tar.gz linux-8b37865055fe26c33f01823b2a1bfa1b7c526152.tar.bz2 linux-8b37865055fe26c33f01823b2a1bfa1b7c526152.zip |
staging: kpc2000: kpc_spi: remove unnecessary struct member phys
The structure kp_spi_controller_state, defined in the kpc2000_spi
driver, contains a member named phys 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 32d3ec532e26..20c396bcd904 100644 --- a/drivers/staging/kpc2000/kpc2000_spi.c +++ b/drivers/staging/kpc2000/kpc2000_spi.c @@ -110,7 +110,6 @@ struct kp_spi { struct kp_spi_controller_state { void __iomem *base; - unsigned long phys; unsigned char chip_select; int word_len; s64 conf_cache; @@ -270,7 +269,6 @@ kp_spi_setup(struct spi_device *spidev) return -ENOMEM; } cs->base = kpspi->base; - cs->phys = kpspi->phys; cs->chip_select = spidev->chip_select; cs->word_len = spidev->bits_per_word; cs->conf_cache = -1; |