If !PINCTRL this header is not included in linux/pinctrl/devinfo.h leading
to this error:
error: implicit declaration of function 'pinctrl_gpio_direction_input'
Adding the missing header fixes this.
Signed-off-by: Alexander Stein <redacted>
---
drivers/gpio/gpio-vf610.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c
index 6284bdbe1e0c..af4ab289ca05 100644
--- a/drivers/gpio/gpio-vf610.c
+++ b/drivers/gpio/gpio-vf610.c
@@ -28,6 +28,7 @@
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/of_irq.h>
+#include <linux/pinctrl/consumer.h>
#define VF610_GPIO_PER_PORT 32
--
2.7.2