Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231386
b: refs/heads/master
c: 1b624fb
h: refs/heads/master
v: v3
  • Loading branch information
Marek Vasut authored and Eric Miao committed Jan 14, 2011
1 parent f422959 commit ec7a56c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 57879b8c40d4c254f1feba3adbeb69614fe5e4c9
refs/heads/master: 1b624fb64c2de44c00576cc9695680983f05c1ce
8 changes: 4 additions & 4 deletions trunk/arch/arm/mach-pxa/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ static inline void __iomem *irq_base(int i)
0x40d00130,
};

return (void __iomem *)io_p2v(phys_base[i >> 5]);
return (void __iomem *)io_p2v(phys_base[i]);
}

void __init pxa_init_irq(int irq_nr, set_wake_t fn)
Expand All @@ -168,7 +168,7 @@ void __init pxa_init_irq(int irq_nr, set_wake_t fn)
pxa_internal_irq_nr = irq_nr;

for (n = 0; n < irq_nr; n += 32) {
void __iomem *base = irq_base(n);
void __iomem *base = irq_base(n >> 5);

__raw_writel(0, base + ICMR); /* disable all IRQs */
__raw_writel(0, base + ICLR); /* all IRQs are IRQ, not FIQ */
Expand Down Expand Up @@ -200,7 +200,7 @@ static int pxa_irq_suspend(struct sys_device *dev, pm_message_t state)
{
int i;

for (i = 0; i < pxa_internal_irq_nr; i += 32) {
for (i = 0; i < pxa_internal_irq_nr / 32; i++) {
void __iomem *base = irq_base(i);

saved_icmr[i] = __raw_readl(base + ICMR);
Expand All @@ -219,7 +219,7 @@ static int pxa_irq_resume(struct sys_device *dev)
{
int i;

for (i = 0; i < pxa_internal_irq_nr; i += 32) {
for (i = 0; i < pxa_internal_irq_nr / 32; i++) {
void __iomem *base = irq_base(i);

__raw_writel(saved_icmr[i], base + ICMR);
Expand Down

0 comments on commit ec7a56c

Please sign in to comment.