forked from Minki/linux
blackfin: 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: Sonic Zhang <sonic.zhang@analog.com> Cc: Steven Miao <realmz6@gmail.com> Cc: adi-buildroot-devel@lists.sourceforge.net Acked-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
66d718ddaf
commit
03be35d16e
@ -11,6 +11,8 @@
|
||||
#include <linux/err.h>
|
||||
#include <linux/proc_fs.h>
|
||||
#include <linux/seq_file.h>
|
||||
#include <linux/gpio/driver.h>
|
||||
/* FIXME: consumer API required for gpio_set_value() etc, get rid of this */
|
||||
#include <linux/gpio.h>
|
||||
#include <linux/irq.h>
|
||||
|
||||
@ -1197,7 +1199,7 @@ static struct gpio_chip bfin_chip = {
|
||||
|
||||
static int __init bfin_gpiolib_setup(void)
|
||||
{
|
||||
return gpiochip_add(&bfin_chip);
|
||||
return gpiochip_add_data(&bfin_chip, NULL);
|
||||
}
|
||||
arch_initcall(bfin_gpiolib_setup);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user