gpio: sch: Remove write-only core_base
authorJan Kiszka <jan.kiszka@siemens.com>
Thu, 18 Apr 2019 09:23:48 +0000 (11:23 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 23 Apr 2019 11:08:33 +0000 (13:08 +0200)
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-sch.c

index c333046d02b8bc28fd7fd83171a2fb2241891acb..fb143f28c386344c78ae00143eeee9b786322a4b 100644 (file)
@@ -23,7 +23,6 @@ struct sch_gpio {
        struct gpio_chip chip;
        spinlock_t lock;
        unsigned short iobase;
-       unsigned short core_base;
        unsigned short resume_base;
 };
 
@@ -166,7 +165,6 @@ static int sch_gpio_probe(struct platform_device *pdev)
 
        switch (pdev->id) {
        case PCI_DEVICE_ID_INTEL_SCH_LPC:
-               sch->core_base = 0;
                sch->resume_base = 10;
                sch->chip.ngpio = 14;
 
@@ -185,19 +183,16 @@ static int sch_gpio_probe(struct platform_device *pdev)
                break;
 
        case PCI_DEVICE_ID_INTEL_ITC_LPC:
-               sch->core_base = 0;
                sch->resume_base = 5;
                sch->chip.ngpio = 14;
                break;
 
        case PCI_DEVICE_ID_INTEL_CENTERTON_ILB:
-               sch->core_base = 0;
                sch->resume_base = 21;
                sch->chip.ngpio = 30;
                break;
 
        case PCI_DEVICE_ID_INTEL_QUARK_X1000_ILB:
-               sch->core_base = 0;
                sch->resume_base = 2;
                sch->chip.ngpio = 8;
                break;