浏览代码

gpio: altera: Include GPIO driver header

This is a GPIO driver so it should definately include
<linux/gpio/driver.h>. We want to get rid of <linux/of_gpio.h>
but that will take a bit longer.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Linus Walleij 7 年之前
父节点
当前提交
40a1f9b207
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      drivers/gpio/gpio-altera.c

+ 2 - 1
drivers/gpio/gpio-altera.c

@@ -18,7 +18,8 @@
 
 #include <linux/io.h>
 #include <linux/module.h>
-#include <linux/of_gpio.h>
+#include <linux/gpio/driver.h>
+#include <linux/of_gpio.h> /* For of_mm_gpio_chip */
 #include <linux/platform_device.h>
 
 #define ALTERA_GPIO_MAX_NGPIO		32