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

sh: sdk7786-gpio: 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: Paul Mundt <lethal@linux-sh.org>
Cc: linux-sh@vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

+2 -2
+2 -2
arch/sh/boards/mach-sdk7786/gpio.c
··· 9 9 */ 10 10 #include <linux/init.h> 11 11 #include <linux/interrupt.h> 12 - #include <linux/gpio.h> 12 + #include <linux/gpio/driver.h> 13 13 #include <linux/irq.h> 14 14 #include <linux/kernel.h> 15 15 #include <linux/spinlock.h> ··· 44 44 45 45 static int __init usrgpir_gpio_setup(void) 46 46 { 47 - return gpiochip_add(&usrgpir_gpio_chip); 47 + return gpiochip_add_data(&usrgpir_gpio_chip, NULL); 48 48 } 49 49 device_initcall(usrgpir_gpio_setup);