[PATCH] ARM: pxa: fix missing linux/gpio.h include

Daniel Mack zonque at gmail.com
Wed Nov 16 09:35:03 EST 2011


Fixes the following compile error:

  arch/arm/mach-pxa/pxa3xx.c: In function 'pxa3xx_cpu_pm_suspend':
  arch/arm/mach-pxa/pxa3xx.c:156: error: implicit declaration of function 'gpio_get_value'
  make[1]: *** [arch/arm/mach-pxa/pxa3xx.o] Error 1

Signed-off-by: Daniel Mack <zonque at gmail.com>
Cc: Haojian Zhuang <haojian.zhuang at marvell.com>
Cc: Eric Miao <eric.y.miao at gmail.com>
---

 I didn't closely follow all recent patches around PXA, so it might be that
 this has already been cared for. Haojian?

 arch/arm/mach-pxa/pxa3xx.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c
index 3866d52..7cddd11 100644
--- a/arch/arm/mach-pxa/pxa3xx.c
+++ b/arch/arm/mach-pxa/pxa3xx.c
@@ -19,6 +19,7 @@
 #include <linux/platform_device.h>
 #include <linux/irq.h>
 #include <linux/io.h>
+#include <linux/gpio.h>
 #include <linux/syscore_ops.h>
 #include <linux/i2c/pxa-i2c.h>
 
-- 
1.7.7.1




More information about the linux-arm-kernel mailing list