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

sh: x3proto-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-x3proto/gpio.c
··· 13 13 14 14 #include <linux/init.h> 15 15 #include <linux/interrupt.h> 16 - #include <linux/gpio.h> 16 + #include <linux/gpio/driver.h> 17 17 #include <linux/irq.h> 18 18 #include <linux/kernel.h> 19 19 #include <linux/spinlock.h> ··· 107 107 if (unlikely(ilsel < 0)) 108 108 return ilsel; 109 109 110 - ret = gpiochip_add(&x3proto_gpio_chip); 110 + ret = gpiochip_add_data(&x3proto_gpio_chip, NULL); 111 111 if (unlikely(ret)) 112 112 goto err_gpio; 113 113