ARM: gemini: switch to gpiochip_add_data()

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>
This commit is contained in:
Linus Walleij 2015-12-08 10:56:49 +01:00
parent 050c542938
commit 90b9bb81bc

View File

@ -17,7 +17,7 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/irq.h> #include <linux/irq.h>
#include <linux/gpio.h> #include <linux/gpio/driver.h>
#include <mach/hardware.h> #include <mach/hardware.h>
#include <mach/irqs.h> #include <mach/irqs.h>
@ -227,5 +227,5 @@ void __init gemini_gpio_init(void)
(void *)i); (void *)i);
} }
BUG_ON(gpiochip_add(&gemini_gpio_chip)); BUG_ON(gpiochip_add_data(&gemini_gpio_chip, NULL));
} }