aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-rza2.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2019-08-20 15:59:55 +0200
committerGeert Uytterhoeven <geert+renesas@glider.be>2019-08-23 09:08:10 +0200
commit0a6864274e4166cde21f26193350c7fcd9716ef5 (patch)
tree1760c166899242ee453dd31a18b912533311355c /drivers/pinctrl/pinctrl-rza2.c
parentpinctrl: rza2: Drop driver use of consumer flags (diff)
downloadlinux-dev-0a6864274e4166cde21f26193350c7fcd9716ef5.tar.xz
linux-dev-0a6864274e4166cde21f26193350c7fcd9716ef5.zip
pinctrl: rza2: Include the appropriate headers
This driver is implementing a GPIO driver so include <linux/gpio/driver.h> and not the legacy API <linux/gpio.h>. When testing it turns out it also relies on implicit inclusion of <linux/io.h> (readw etc) so make sure to include that as well. Cc: Chris Brandt <chris.brandt@renesas.com> Cc: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'drivers/pinctrl/pinctrl-rza2.c')
-rw-r--r--drivers/pinctrl/pinctrl-rza2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-rza2.c b/drivers/pinctrl/pinctrl-rza2.c
index b0806667e94c..3be1d833bf25 100644
--- a/drivers/pinctrl/pinctrl-rza2.c
+++ b/drivers/pinctrl/pinctrl-rza2.c
@@ -11,7 +11,8 @@
*/
#include <linux/bitops.h>
-#include <linux/gpio.h>
+#include <linux/gpio/driver.h>
+#include <linux/io.h>
#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/pinctrl/pinmux.h>