diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2015-12-08 14:33:54 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-02-19 09:51:44 +0100 |
commit | d98312f774ec9a5bf740aa0c062c67d268e5085b (patch) | |
tree | 8397827a46f18c72b30122b19d096a58b1473484 /arch/mips/kernel/gpio_txx9.c | |
parent | MIPS: jz4740: use gpiochip data pointer (diff) | |
download | linux-d98312f774ec9a5bf740aa0c062c67d268e5085b.tar.xz linux-d98312f774ec9a5bf740aa0c062c67d268e5085b.zip |
MIPS: txx9: 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: linux-mips@linux-mips.org
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/mips/kernel/gpio_txx9.c')
-rw-r--r-- | arch/mips/kernel/gpio_txx9.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/kernel/gpio_txx9.c b/arch/mips/kernel/gpio_txx9.c index 705be43c3533..cbd47f38073b 100644 --- a/arch/mips/kernel/gpio_txx9.c +++ b/arch/mips/kernel/gpio_txx9.c @@ -10,7 +10,7 @@ #include <linux/init.h> #include <linux/spinlock.h> -#include <linux/gpio.h> +#include <linux/gpio/driver.h> #include <linux/errno.h> #include <linux/io.h> #include <asm/txx9pio.h> @@ -85,5 +85,5 @@ int __init txx9_gpio_init(unsigned long baseaddr, return -ENODEV; txx9_gpio_chip.base = base; txx9_gpio_chip.ngpio = num; - return gpiochip_add(&txx9_gpio_chip); + return gpiochip_add_data(&txx9_gpio_chip, NULL); } |