aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/pxa27x.c
diff options
context:
space:
mode:
authorEric Miao <eric.miao@marvell.com>2008-11-26 04:06:42 -0500
committerEric Miao <eric.miao@marvell.com>2008-12-02 01:42:36 -0500
commitddd244dd814ee3e5ef1e4872705cbec0dfced541 (patch)
tree6966184be36d2ba68fc6254182c9dc6574f16b4b /arch/arm/mach-pxa/pxa27x.c
parent9968711468570c5dc5f96c415e73cb3282e857fc (diff)
[ARM] pxa: use 'pxa_last_gpio' instead of 'gpio_nr' in mfp-pxa2xx.c
The 'gpio_nr' can really be inferred by 'pxa_last_gpio', and since we already have that variable, remove the unnecessary 'gpio_nr' now. Also, fix the incorrect GPIO number passed in pxa27x_init_irq(). Note: pxa_last_gpio should be initialized earlier, and this is true since it's been assigned in machine_desc->init_irq(). Signed-off-by: Eric Miao <eric.miao@marvell.com>
Diffstat (limited to 'arch/arm/mach-pxa/pxa27x.c')
-rw-r--r--arch/arm/mach-pxa/pxa27x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c
index 3e4ab2279c99..67592664493d 100644
--- a/arch/arm/mach-pxa/pxa27x.c
+++ b/arch/arm/mach-pxa/pxa27x.c
@@ -313,7 +313,7 @@ static int pxa27x_set_wake(unsigned int irq, unsigned int on)
313void __init pxa27x_init_irq(void) 313void __init pxa27x_init_irq(void)
314{ 314{
315 pxa_init_irq(34, pxa27x_set_wake); 315 pxa_init_irq(34, pxa27x_set_wake);
316 pxa_init_gpio(128, pxa27x_set_wake); 316 pxa_init_gpio(121, pxa27x_set_wake);
317} 317}
318 318
319/* 319/*