summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa/pxa3xx.c
diff options
context:
space:
mode:
authorEric Miao <eric.y.miao@gmail.com>2011-04-27 22:48:04 +0800
committerEric Miao <eric.y.miao@gmail.com>2011-07-12 19:45:21 +0800
commit5d284e353eb11ab2e8b1c5671ba06489b0bd1e0c (patch)
tree4c8edb89d7d977e39415df3a06b1af88012bb053 /arch/arm/mach-pxa/pxa3xx.c
parent9c86441081e84c9fb9fac3929c6e7d3e6f4dd891 (diff)
downloadlinux-5d284e353eb11ab2e8b1c5671ba06489b0bd1e0c.tar.gz
linux-5d284e353eb11ab2e8b1c5671ba06489b0bd1e0c.tar.bz2
linux-5d284e353eb11ab2e8b1c5671ba06489b0bd1e0c.zip
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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-pxa/pxa3xx.c b/arch/arm/mach-pxa/pxa3xx.c
index 8521d7d6f1da..e66dc1562cda 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);
}