gpio: davinci: Remove redundant members davinci_gpio_controller stuct
authorKeerthy <j-keerthy@ti.com>
Wed, 4 Jan 2017 08:26:28 +0000 (13:56 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Jan 2017 10:59:43 +0000 (11:59 +0100)
davinci_gpio_controller struct has set_data, in_data, clr_data
members that are assigned and never used.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-davinci.c
include/linux/platform_data/gpio-davinci.h

index 9191056548fe3032ae687c4c0363598449a6acf3..163f81e3db83a61434976b305b5df944cab7a3d1 100644 (file)
@@ -266,9 +266,6 @@ static int davinci_gpio_probe(struct platform_device *pdev)
                if (!regs)
                        return -ENXIO;
                chips[i].regs = regs;
-               chips[i].set_data = &regs->set_data;
-               chips[i].clr_data = &regs->clr_data;
-               chips[i].in_data = &regs->in_data;
 
                gpiochip_add_data(&chips[i].chip, &chips[i]);
        }
index 6ace3fd32b6afc4322efd59a053dc592cb2d1bb8..44ca5303849ce9c109e4d58c83a0db7060de9f2a 100644 (file)
@@ -33,9 +33,6 @@ struct davinci_gpio_controller {
        /* Serialize access to GPIO registers */
        spinlock_t              lock;
        void __iomem            *regs;
-       void __iomem            *set_data;
-       void __iomem            *clr_data;
-       void __iomem            *in_data;
        int                     gpio_unbanked;
        unsigned                gpio_irq;
 };