summaryrefslogtreecommitdiffstats
path: root/drivers/of
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2010-07-05 16:11:55 -0600
committerGrant Likely <grant.likely@secretlab.ca>2010-07-05 16:14:44 -0600
commit2e13cba8dc35774bf1d7169733e876c5b7adee54 (patch)
treee3901e9c6a81f687875910e661d66a9215f4f8ea /drivers/of
parent391c970c0dd1100e3b9e1681f7d0f20aac35455a (diff)
downloadlinux-2e13cba8dc35774bf1d7169733e876c5b7adee54.tar.bz2
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')
-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