diff options
author | Andrea Merello <[email protected]> | 2015-12-26 13:47:24 -0800 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2015-12-29 11:40:46 +0100 |
commit | 64103f061573e3d7670ba295b07919fb8fc7594c (patch) | |
tree | 16b59412ade0941ecf41c9cf918adc41949bf9b4 | |
parent | a51744ddcc62925ec4d3d3d3a8a13bdd2033af59 (diff) |
irqchip/bcm2836: Make code more readable
Avoid using hardcoded magics. We have a #define for this number.
No functional changes.
Signed-off-by: Andrea Merello <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Signed-off-by: Eric Anholt <[email protected]>
Cc: [email protected]
Cc: Stephen Warren <[email protected]>
Cc: Lee Jones <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Jason Cooper <[email protected]>
Cc: Marc Zyngier <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
-rw-r--r-- | drivers/irqchip/irq-bcm2836.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-bcm2836.c b/drivers/irqchip/irq-bcm2836.c index bb8f234b6b73..963065a0d774 100644 --- a/drivers/irqchip/irq-bcm2836.c +++ b/drivers/irqchip/irq-bcm2836.c @@ -167,7 +167,7 @@ __exception_irq_entry bcm2836_arm_irqchip_handle_irq(struct pt_regs *regs) u32 stat; stat = readl_relaxed(intc.base + LOCAL_IRQ_PENDING0 + 4 * cpu); - if (stat & 0x10) { + if (stat & BIT(LOCAL_IRQ_MAILBOX0)) { #ifdef CONFIG_SMP void __iomem *mailbox0 = (intc.base + LOCAL_MAILBOX0_CLR0 + 16 * cpu); |