[PATCH 6/9] staging: gpio-mt7621: Include the right header
Linus Walleij
linus.walleij at linaro.org
Thu Apr 19 08:41:18 UTC 2018
GPIO drivers should include <linux/gpio/driver.h> only, the
<linux/gpio.h> header is deprecated.
Cc: John Crispin <john at phrozen.org>
Cc: Zhiyong Tao <zhiyong.tao at mediatek.com>
Cc: Sean Wang <sean.wang at mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
---
I was philosophizing whether pinctrl/mediatek/pinctrl-mt7622 is
similar to this and can drive also the mt7621 but what do I know.
Sean can you have a look at this staging driver and give some
directions?
---
drivers/staging/mt7621-gpio/gpio-mt7621.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/mt7621-gpio/gpio-mt7621.c b/drivers/staging/mt7621-gpio/gpio-mt7621.c
index 51235687ddb6..ca105b171a06 100644
--- a/drivers/staging/mt7621-gpio/gpio-mt7621.c
+++ b/drivers/staging/mt7621-gpio/gpio-mt7621.c
@@ -9,7 +9,7 @@
#include <linux/io.h>
#include <linux/err.h>
-#include <linux/gpio.h>
+#include <linux/gpio/driver.h>
#include <linux/module.h>
#include <linux/of_irq.h>
#include <linux/spinlock.h>
--
2.14.3
More information about the devel
mailing list