[PATCH 1/2] ARM: pxa: fix build error for GPIO_bit()

Subsystems: arm port, pxa2xx/pxa3xx support, the rest

STALE5388d

2 messages, 1 author, 2011-12-08 · open the first message on its own page

[PATCH 1/2] ARM: pxa: fix build error for GPIO_bit()

From: Haojian Zhuang <hidden>
Date: 2011-12-08 07:07:18

arch/arm/mach-pxa/spitz_pm.c: In function ?spitz_presuspend?:
arch/arm/mach-pxa/spitz_pm.c:112:2: error: implicit declaration of
function ?GPIO_bit?
make[1]: *** [arch/arm/mach-pxa/spitz_pm.o] Error 1

GPIO_bit() is moved into <linux/gpio-pxa.h>.

Signed-off-by: Haojian Zhuang <redacted>
---
 arch/arm/mach-pxa/spitz_pm.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-pxa/spitz_pm.c b/arch/arm/mach-pxa/spitz_pm.c
index 5cc05d1..34cbdac 100644
--- a/arch/arm/mach-pxa/spitz_pm.c
+++ b/arch/arm/mach-pxa/spitz_pm.c
@@ -15,6 +15,7 @@
 #include <linux/kernel.h>
 #include <linux/delay.h>
 #include <linux/gpio.h>
+#include <linux/gpio-pxa.h>
 #include <linux/interrupt.h>
 #include <linux/platform_device.h>
 #include <linux/apm-emulation.h>
-- 
1.7.0.4

[PATCH 2/2] ARM: pxa: fix the build error because of missing gpio-pxa.h

From: Haojian Zhuang <hidden>
Date: 2011-12-08 07:07:19

arch/arm/mach-pxa/corgi_pm.c: In function ?corgi_should_wakeup?:
arch/arm/mach-pxa/corgi_pm.c:102:2: error: implicit declaration of
function ?GPIO_bit?
make[1]: *** [arch/arm/mach-pxa/corgi_pm.o] Error 1
make: *** [arch/arm/mach-pxa] Error 2

Signed-off-by: Haojian Zhuang <redacted>
---
 arch/arm/mach-pxa/corgi_pm.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-pxa/corgi_pm.c b/arch/arm/mach-pxa/corgi_pm.c
index eca862f..39e265c 100644
--- a/arch/arm/mach-pxa/corgi_pm.c
+++ b/arch/arm/mach-pxa/corgi_pm.c
@@ -15,6 +15,7 @@
 #include <linux/kernel.h>
 #include <linux/delay.h>
 #include <linux/gpio.h>
+#include <linux/gpio-pxa.h>
 #include <linux/interrupt.h>
 #include <linux/platform_device.h>
 #include <linux/apm-emulation.h>
-- 
1.7.0.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help