]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: kpc2000: kpc_spi: remove unnecessary struct member phys
authorGeordan Neukum <gneukum1@gmail.com>
Wed, 5 Jun 2019 01:09:08 +0000 (01:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jun 2019 13:05:01 +0000 (15:05 +0200)
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>
drivers/staging/kpc2000/kpc2000_spi.c

index 32d3ec532e26061b21d447f67a4422248c221b62..20c396bcd904bf61bce42e39ed5de37d16c3e8e1 100644 (file)
@@ -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;