MIPS: alchemy: switch to gpiochip_add_data()
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 8 Dec 2015 13:08:42 +0000 (14:08 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 19 Feb 2016 08:51:43 +0000 (09:51 +0100)
We're planning to remove the gpiochip_add() function to swith
to gpiochip_add_data() with NULL for data argument.

Cc: linux-mips@linux-mips.org
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/mips/alchemy/common/gpiolib.c

index 84548f704035391d9715d2aeee0a8845735f8dd1..e6b90e72c23fb1f84a3aed6eaf2638b1a52eb74d 100644 (file)
@@ -160,14 +160,14 @@ static int __init alchemy_gpiochip_init(void)
 
        switch (alchemy_get_cputype()) {
        case ALCHEMY_CPU_AU1000:
-               ret = gpiochip_add(&alchemy_gpio_chip[0]);
+               ret = gpiochip_add_data(&alchemy_gpio_chip[0], NULL);
                break;
        case ALCHEMY_CPU_AU1500...ALCHEMY_CPU_AU1200:
-               ret = gpiochip_add(&alchemy_gpio_chip[0]);
-               ret |= gpiochip_add(&alchemy_gpio_chip[1]);
+               ret = gpiochip_add_data(&alchemy_gpio_chip[0], NULL);
+               ret |= gpiochip_add_data(&alchemy_gpio_chip[1], NULL);
                break;
        case ALCHEMY_CPU_AU1300:
-               ret = gpiochip_add(&au1300_gpiochip);
+               ret = gpiochip_add_data(&au1300_gpiochip, NULL);
                break;
        }
        return ret;