diff options
author | Eric Miao <eric.y.miao@gmail.com> | 2011-04-27 22:48:04 +0800 |
---|---|---|
committer | Eric Miao <eric.y.miao@gmail.com> | 2011-07-12 19:45:21 +0800 |
commit | 5d284e353eb11ab2e8b1c5671ba06489b0bd1e0c (patch) | |
tree | 4c8edb89d7d977e39415df3a06b1af88012bb053 /arch/arm/mach-pxa/pxa3xx.c | |
parent | 9c86441081e84c9fb9fac3929c6e7d3e6f4dd891 (diff) | |
download | op-kernel-dev-5d284e353eb11ab2e8b1c5671ba06489b0bd1e0c.zip op-kernel-dev-5d284e353eb11ab2e8b1c5671ba06489b0bd1e0c.tar.gz |
ARM: pxa: avoid accessing interrupt registers directly
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa/pxa3xx.c')
-rw-r--r-- | arch/arm/mach-pxa/pxa3xx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c index 8521d7d..e66dc15 100644 --- a/arch/arm/mach-pxa/pxa3xx.c +++ b/arch/arm/mach-pxa/pxa3xx.c @@ -31,7 +31,6 @@ #include <mach/ohci.h> #include <mach/pm.h> #include <mach/dma.h> -#include <mach/regs-intc.h> #include <mach/smemc.h> #include "generic.h" @@ -328,13 +327,13 @@ static void pxa_ack_ext_wakeup(struct irq_data *d) static void pxa_mask_ext_wakeup(struct irq_data *d) { - ICMR2 &= ~(1 << ((d->irq - PXA_IRQ(0)) & 0x1f)); + pxa_mask_irq(d); PECR &= ~PECR_IE(d->irq - IRQ_WAKEUP0); } static void pxa_unmask_ext_wakeup(struct irq_data *d) { - ICMR2 |= 1 << ((d->irq - PXA_IRQ(0)) & 0x1f); + pxa_unmask_irq(d); PECR |= PECR_IE(d->irq - IRQ_WAKEUP0); } |