summaryrefslogtreecommitdiffstats
path: root/arch/unicore32/kernel
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2015-12-08 16:07:09 +0100
committerLinus Walleij <linus.walleij@linaro.org>2016-03-30 10:54:15 +0200
commitfd19f534ab7660883191d5f3c9d01f0c6f444aea (patch)
tree3e5836b3a2b93c16a8e8503e4b661a30910f9865 /arch/unicore32/kernel
parentsh: x3proto-gpio: switch to gpiochip_add_data() (diff)
downloadlinux-fd19f534ab7660883191d5f3c9d01f0c6f444aea.tar.xz
linux-fd19f534ab7660883191d5f3c9d01f0c6f444aea.zip
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: Guan Xuetao <gxt@mprc.pku.edu.cn> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/unicore32/kernel')
-rw-r--r--arch/unicore32/kernel/gpio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/unicore32/kernel/gpio.c b/arch/unicore32/kernel/gpio.c
index 5ab23794ea17..49347a0e9288 100644
--- a/arch/unicore32/kernel/gpio.c
+++ b/arch/unicore32/kernel/gpio.c
@@ -14,6 +14,8 @@
#include <linux/init.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 <mach/hardware.h>
@@ -118,5 +120,5 @@ void __init puv3_init_gpio(void)
* gpio_set_value(GPO_SET_V2, 1);
*/
#endif
- gpiochip_add(&puv3_gpio_chip);
+ gpiochip_add_data(&puv3_gpio_chip, NULL);
}