[ARM] pxa/vpac270: remove TS_IRQ magic number
authorMarek Vasut <marek.vasut@gmail.com>
Mon, 26 Apr 2010 21:23:48 +0000 (23:23 +0200)
committerEric Miao <eric.y.miao@gmail.com>
Tue, 11 May 2010 15:25:03 +0000 (17:25 +0200)
The touchscreen GPIO IRQ was used as a magic number. Define it properly in the
board header file. This is a simple cleanup patch.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
arch/arm/mach-pxa/include/mach/vpac270.h
arch/arm/mach-pxa/vpac270.c

index 0d82c47056ef1587ca70d979dbbed642f7a73672..7bfa3dd0fd5e29b4e326d2561ffa84a0f73cda85 100644 (file)
@@ -37,4 +37,6 @@
 
 #define        GPIO36_VPAC270_IDE_IRQ          36
 
+#define        GPIO113_VPAC270_TS_IRQ          113
+
 #endif
index 6575b8f352c97723d9705dc2a1e9c2246f9b1a80..a1b39c4674da118f319bb6b40947b90589ca4c24 100644 (file)
@@ -388,7 +388,7 @@ static pxa2xx_audio_ops_t vpac270_ac97_pdata = {
 };
 
 static struct ucb1400_pdata vpac270_ucb1400_pdata = {
-       .irq            = IRQ_GPIO(113),
+       .irq            = IRQ_GPIO(GPIO113_VPAC270_TS_IRQ),
 };
 
 static struct platform_device vpac270_ucb1400_device = {