提交 fd19f534 编写于 作者: L Linus Walleij

unicore32: 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.
Acked-by: NGuan Xuetao <gxt@mprc.pku.edu.cn>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 efed58f1
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/gpio/driver.h>
/* FIXME: needed for gpio_set_value() - convert to use descriptors or hogs */
#include <linux/gpio.h> #include <linux/gpio.h>
#include <mach/hardware.h> #include <mach/hardware.h>
...@@ -118,5 +120,5 @@ void __init puv3_init_gpio(void) ...@@ -118,5 +120,5 @@ void __init puv3_init_gpio(void)
* gpio_set_value(GPO_SET_V2, 1); * gpio_set_value(GPO_SET_V2, 1);
*/ */
#endif #endif
gpiochip_add(&puv3_gpio_chip); gpiochip_add_data(&puv3_gpio_chip, NULL);
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册