diff options
author | Eric Miao <eric.y.miao@gmail.com> | 2011-04-12 12:39:39 +0200 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2011-04-13 03:30:40 +0200 |
commit | 7db6a7fa09884b34d2a5d4e6e4ed58664a5f0cf8 (patch) | |
tree | fba3439bafcfaa4640a9f943be6746580203134e /arch/arm/mach-pxa/pxa27x.c | |
parent | ARM: mmp: align NR_BUILTIN_GPIO with gpio interrupt number (diff) | |
download | linux-7db6a7fa09884b34d2a5d4e6e4ed58664a5f0cf8.tar.xz linux-7db6a7fa09884b34d2a5d4e6e4ed58664a5f0cf8.zip |
ARM: pxa: convert incorrect IRQ_TO_IRQ() to irq_to_gpio()
This fixes the failure to register the IRQ_RTCAlrm alarm as a wakeup
event. It is misinterpreted as a gpio irq not a PWER bitmask. Fixed
this by converting the incorrect IRQ_TO_IRQ() to a correct version of
irq_to_gpio().
Reported-by: Nick Bane <nickbane1@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/pxa27x.c')
-rw-r--r-- | arch/arm/mach-pxa/pxa27x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/pxa27x.c b/arch/arm/mach-pxa/pxa27x.c index 1cb5d0f9723f..909756eaf4b7 100644 --- a/arch/arm/mach-pxa/pxa27x.c +++ b/arch/arm/mach-pxa/pxa27x.c @@ -345,7 +345,7 @@ static inline void pxa27x_init_pm(void) {} */ static int pxa27x_set_wake(struct irq_data *d, unsigned int on) { - int gpio = IRQ_TO_GPIO(d->irq); + int gpio = irq_to_gpio(d->irq); uint32_t mask; if (gpio >= 0 && gpio < 128) |