summaryrefslogtreecommitdiffstats
path: root/drivers/of/gpio.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-07-06 00:11:55 +0200
committerGrant Likely <grant.likely@secretlab.ca>2010-07-06 00:14:44 +0200
commit2e13cba8dc35774bf1d7169733e876c5b7adee54 (patch)
treee3901e9c6a81f687875910e661d66a9215f4f8ea /drivers/of/gpio.c
parentof/gpio: add default of_xlate function if device has a node pointer (diff)
downloadlinux-2e13cba8dc35774bf1d7169733e876c5b7adee54.tar.xz
linux-2e13cba8dc35774bf1d7169733e876c5b7adee54.zip
of/gpio: fix of_gpio includes
drivers/of/gpio.c is missing includes for of_irq and struct device which cause build failures on ARM. This patch adds the correct include files and removes the unneeded kernel.h include Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/of/gpio.c')
-rw-r--r--drivers/of/gpio.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/of/gpio.c b/drivers/of/gpio.c
index 09f05a178668..905960338fb2 100644
--- a/drivers/of/gpio.c
+++ b/drivers/of/gpio.c
@@ -11,13 +11,14 @@
* (at your option) any later version.
*/
-#include <linux/kernel.h>
+#include <linux/device.h>
#include <linux/errno.h>
+#include <linux/module.h>
#include <linux/io.h>
#include <linux/of.h>
-#include <linux/slab.h>
+#include <linux/of_address.h>
#include <linux/of_gpio.h>
-#include <asm/prom.h>
+#include <linux/slab.h>
/**
* of_get_gpio_flags - Get a GPIO number and flags to use with GPIO API