diff options
| author | Linus Walleij <linus.walleij@linaro.org> | 2015-12-08 10:02:00 -0500 |
|---|---|---|
| committer | Linus Walleij <linus.walleij@linaro.org> | 2016-03-30 04:53:51 -0400 |
| commit | efed58f1c574a31c03447afffe69440e83fdf84d (patch) | |
| tree | 2d13c262cb7e4b981c600a849fa845a4137581d2 /arch/sh/boards | |
| parent | a8cb826aeab84553a30af22ca6d6b95a6513adb2 (diff) | |
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>
Diffstat (limited to 'arch/sh/boards')
| -rw-r--r-- | arch/sh/boards/mach-x3proto/gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/boards/mach-x3proto/gpio.c b/arch/sh/boards/mach-x3proto/gpio.c index 1fb2cbee25f2..cea88b0effa2 100644 --- a/arch/sh/boards/mach-x3proto/gpio.c +++ b/arch/sh/boards/mach-x3proto/gpio.c | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | 13 | ||
| 14 | #include <linux/init.h> | 14 | #include <linux/init.h> |
| 15 | #include <linux/interrupt.h> | 15 | #include <linux/interrupt.h> |
| 16 | #include <linux/gpio.h> | 16 | #include <linux/gpio/driver.h> |
| 17 | #include <linux/irq.h> | 17 | #include <linux/irq.h> |
| 18 | #include <linux/kernel.h> | 18 | #include <linux/kernel.h> |
| 19 | #include <linux/spinlock.h> | 19 | #include <linux/spinlock.h> |
| @@ -107,7 +107,7 @@ int __init x3proto_gpio_setup(void) | |||
| 107 | if (unlikely(ilsel < 0)) | 107 | if (unlikely(ilsel < 0)) |
| 108 | return ilsel; | 108 | return ilsel; |
| 109 | 109 | ||
| 110 | ret = gpiochip_add(&x3proto_gpio_chip); | 110 | ret = gpiochip_add_data(&x3proto_gpio_chip, NULL); |
| 111 | if (unlikely(ret)) | 111 | if (unlikely(ret)) |
| 112 | goto err_gpio; | 112 | goto err_gpio; |
| 113 | 113 | ||
