pinctrl: armada-37xx: remove unused variable
authorArnd Bergmann <arnd@arndb.de>
Thu, 2 Nov 2017 14:29:13 +0000 (15:29 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 3 Nov 2017 22:19:48 +0000 (23:19 +0100)
A cleanup left behind a temporary variable that is now unused:

drivers/pinctrl/mvebu/pinctrl-armada-37xx.c: In function 'armada_37xx_irq_startup':
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c:693:20: error: unused variable 'chip' [-Werror=unused-variable]

This removes the declarations as well.

Fixes: 3ee9e605caea ("pinctrl: armada-37xx: Stop using struct gpio_chip.irq_base")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c

index ac299a6cdfd61c2a8d1fc4433337970fc4ec30d2..e800d55c340b0b956ba6d24c5a5ee4c9d1f1145b 100644 (file)
@@ -626,8 +626,6 @@ static void armada_37xx_irq_handler(struct irq_desc *desc)
 
 static unsigned int armada_37xx_irq_startup(struct irq_data *d)
 {
-       struct gpio_chip *chip = irq_data_get_irq_chip_data(d);
-
        /*
         * The mask field is a "precomputed bitmask for accessing the
         * chip registers" which was introduced for the generic