ARM: imx: switch to gpiochip_add_data()
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 8 Dec 2015 10:03:12 +0000 (11:03 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 19 Feb 2016 08:51:41 +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: arm@kernel.org
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-imx/mach-mx27ads.c

index eb1c347..f510c43 100644 (file)
@@ -13,6 +13,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  */
+#include <linux/gpio/driver.h>
+/* Needed for gpio_to_irq() */
 #include <linux/gpio.h>
 #include <linux/platform_device.h>
 #include <linux/mtd/mtd.h>
@@ -243,7 +245,7 @@ static void __init mx27ads_regulator_init(void)
        vchip->ngpio            = 1;
        vchip->direction_output = vgpio_dir_out;
        vchip->set              = vgpio_set;
-       gpiochip_add(vchip);
+       gpiochip_add_data(vchip, NULL);
 
        platform_device_register_data(NULL, "reg-fixed-voltage",
                                      PLATFORM_DEVID_AUTO,