aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2015-12-08 08:01:01 -0500
committerLinus Walleij <linus.walleij@linaro.org>2016-02-19 03:51:43 -0500
commite0958405bc5861b42fab41a11dbdd7ddabd8d4b6 (patch)
tree54b227f37e51a407190515bb9acbac46c19dc0de
parent03be35d16e2a627f80736a7b41c3b23e41174e83 (diff)
blackfin: extgpio: 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: Sonic Zhang <sonic.zhang@analog.com> Cc: Steven Miao <realmz6@gmail.com> Cc: adi-buildroot-devel@lists.sourceforge.net Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--arch/blackfin/mach-bf538/ext-gpio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/blackfin/mach-bf538/ext-gpio.c b/arch/blackfin/mach-bf538/ext-gpio.c
index d3e7b66ac8d5..48c100228f2d 100644
--- a/arch/blackfin/mach-bf538/ext-gpio.c
+++ b/arch/blackfin/mach-bf538/ext-gpio.c
@@ -116,9 +116,9 @@ static struct gpio_chip bf538_porte_chip = {
116 116
117static int __init bf538_extgpio_setup(void) 117static int __init bf538_extgpio_setup(void)
118{ 118{
119 return gpiochip_add(&bf538_portc_chip) | 119 return gpiochip_add_data(&bf538_portc_chip, NULL) |
120 gpiochip_add(&bf538_portd_chip) | 120 gpiochip_add_data(&bf538_portd_chip, NULL) |
121 gpiochip_add(&bf538_porte_chip); 121 gpiochip_add_data(&bf538_porte_chip, NULL);
122} 122}
123arch_initcall(bf538_extgpio_setup); 123arch_initcall(bf538_extgpio_setup);
124 124