diff options
author | Andrew Bresticker <abrestic@chromium.org> | 2014-10-20 15:03:54 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-11-24 01:45:13 -0500 |
commit | 824f3f7fa2b441416e3d9aaf1f19feab7db44747 (patch) | |
tree | 4a3f96dfb428482bc15d97586bf998b544875c08 /drivers/irqchip | |
parent | 7110e227c86b83446b3b157df2ebb662c9fcb033 (diff) |
irqchip: mips-gic: Clean up header file
Remove duplicate #defines and unnecessary #includes, fix parenthesization,
and re-order register definitions in ascending order.
Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: Qais Yousef <qais.yousef@imgtec.com>
Cc: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/8128/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'drivers/irqchip')
-rw-r--r-- | drivers/irqchip/irq-mips-gic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/irqchip/irq-mips-gic.c b/drivers/irqchip/irq-mips-gic.c index bf0f7c978086..eaebeea36d23 100644 --- a/drivers/irqchip/irq-mips-gic.c +++ b/drivers/irqchip/irq-mips-gic.c | |||
@@ -253,8 +253,8 @@ static unsigned int gic_get_int(void) | |||
253 | intrmask = intrmask_regs[smp_processor_id()].intrmask; | 253 | intrmask = intrmask_regs[smp_processor_id()].intrmask; |
254 | pcpu_mask = pcpu_masks[smp_processor_id()].pcpu_mask; | 254 | pcpu_mask = pcpu_masks[smp_processor_id()].pcpu_mask; |
255 | 255 | ||
256 | pending_reg = GIC_REG(SHARED, GIC_SH_PEND_31_0); | 256 | pending_reg = GIC_REG(SHARED, GIC_SH_PEND); |
257 | intrmask_reg = GIC_REG(SHARED, GIC_SH_MASK_31_0); | 257 | intrmask_reg = GIC_REG(SHARED, GIC_SH_MASK); |
258 | 258 | ||
259 | for (i = 0; i < BITS_TO_LONGS(gic_shared_intrs); i++) { | 259 | for (i = 0; i < BITS_TO_LONGS(gic_shared_intrs); i++) { |
260 | pending[i] = gic_read(pending_reg); | 260 | pending[i] = gic_read(pending_reg); |