Skip to content

Commit

Permalink
pinctrl: rza2: Include the appropriate headers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Linus Walleij authored and Geert Uytterhoeven committed Aug 23, 2019
1 parent 5b1d96e commit 0a68642
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/pinctrl/pinctrl-rza2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 0a68642

Please sign in to comment.