Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -2
+2 -2
arch/mips/kernel/gpio_txx9.c
··· 10 10 11 11 #include <linux/init.h> 12 12 #include <linux/spinlock.h> 13 - #include <linux/gpio.h> 13 + #include <linux/gpio/driver.h> 14 14 #include <linux/errno.h> 15 15 #include <linux/io.h> 16 16 #include <asm/txx9pio.h> ··· 85 85 return -ENODEV; 86 86 txx9_gpio_chip.base = base; 87 87 txx9_gpio_chip.ngpio = num; 88 - return gpiochip_add(&txx9_gpio_chip); 88 + return gpiochip_add_data(&txx9_gpio_chip, NULL); 89 89 }