aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregory CLEMENT <gregory.clement@free-electrons.com>2014-11-25 10:19:12 -0500
committerJason Cooper <jason@lakedaemon.net>2014-11-25 20:59:54 -0500
commit2f90bce7ff1f760986d55d9cb3a834e8638b1295 (patch)
tree8ab97339916e26b1844f056a7e73e59f5aef451f
parent19e1c15753d2ad6b5d1ed356c7b10f106eb544b5 (diff)
ARM: orion: convert the irq_reg_{readl,writel} calls to the new API
The commit "genirq: Generic chip: Change irq_reg_{readl,writel} arguments" modified the API. In the same tome the arch/arm/plat-orion/gpio.c file received a fix with the use of the old API: "ARM: orion: Fix for certain sequence of request_irq can cause irq storm". This commit fixes the use of the API. Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Acked-by: Olof Johansson <olof@lixom.net> Link: https://lkml.kernel.org/r/1416928752-24529-1-git-send-email-gregory.clement@free-electrons.com Signed-off-by: Jason Cooper <jason@lakedaemon.net>
-rw-r--r--arch/arm/plat-orion/gpio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/plat-orion/gpio.c b/arch/arm/plat-orion/gpio.c
index e048f6198d68..14f6e647c739 100644
--- a/arch/arm/plat-orion/gpio.c
+++ b/arch/arm/plat-orion/gpio.c
@@ -505,9 +505,9 @@ static void orion_gpio_unmask_irq(struct irq_data *d)
505 u32 mask = d->mask; 505 u32 mask = d->mask;
506 506
507 irq_gc_lock(gc); 507 irq_gc_lock(gc);
508 reg_val = irq_reg_readl(gc->reg_base + ct->regs.mask); 508 reg_val = irq_reg_readl(gc, ct->regs.mask);
509 reg_val |= mask; 509 reg_val |= mask;
510 irq_reg_writel(reg_val, gc->reg_base + ct->regs.mask); 510 irq_reg_writel(gc, reg_val, ct->regs.mask);
511 irq_gc_unlock(gc); 511 irq_gc_unlock(gc);
512} 512}
513 513
@@ -519,9 +519,9 @@ static void orion_gpio_mask_irq(struct irq_data *d)
519 u32 reg_val; 519 u32 reg_val;
520 520
521 irq_gc_lock(gc); 521 irq_gc_lock(gc);
522 reg_val = irq_reg_readl(gc->reg_base + ct->regs.mask); 522 reg_val = irq_reg_readl(gc, ct->regs.mask);
523 reg_val &= ~mask; 523 reg_val &= ~mask;
524 irq_reg_writel(reg_val, gc->reg_base + ct->regs.mask); 524 irq_reg_writel(gc, reg_val, ct->regs.mask);
525 irq_gc_unlock(gc); 525 irq_gc_unlock(gc);
526} 526}
527 527