aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut@gmail.com>2010-04-26 17:23:48 -0400
committerEric Miao <eric.y.miao@gmail.com>2010-05-11 11:25:03 -0400
commitaeec1346884688b86ac7f0f36fb30aba30b459d8 (patch)
tree35232452baedbaea93c87240a4e3fcb7ed55383b /arch/arm
parent052345aec01cbd22285771eee6e08486c07d3bcc (diff)
[ARM] pxa/vpac270: remove TS_IRQ magic number
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>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-pxa/include/mach/vpac270.h2
-rw-r--r--arch/arm/mach-pxa/vpac270.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/include/mach/vpac270.h b/arch/arm/mach-pxa/include/mach/vpac270.h
index 0d82c47056ef..7bfa3dd0fd5e 100644
--- a/arch/arm/mach-pxa/include/mach/vpac270.h
+++ b/arch/arm/mach-pxa/include/mach/vpac270.h
@@ -37,4 +37,6 @@
37 37
38#define GPIO36_VPAC270_IDE_IRQ 36 38#define GPIO36_VPAC270_IDE_IRQ 36
39 39
40#define GPIO113_VPAC270_TS_IRQ 113
41
40#endif 42#endif
diff --git a/arch/arm/mach-pxa/vpac270.c b/arch/arm/mach-pxa/vpac270.c
index 6575b8f352c9..a1b39c4674da 100644
--- a/arch/arm/mach-pxa/vpac270.c
+++ b/arch/arm/mach-pxa/vpac270.c
@@ -388,7 +388,7 @@ static pxa2xx_audio_ops_t vpac270_ac97_pdata = {
388}; 388};
389 389
390static struct ucb1400_pdata vpac270_ucb1400_pdata = { 390static struct ucb1400_pdata vpac270_ucb1400_pdata = {
391 .irq = IRQ_GPIO(113), 391 .irq = IRQ_GPIO(GPIO113_VPAC270_TS_IRQ),
392}; 392};
393 393
394static struct platform_device vpac270_ucb1400_device = { 394static struct platform_device vpac270_ucb1400_device = {