summaryrefslogtreecommitdiffstats
path: root/drivers/irqchip
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-19 12:52:37 +0200
committerMarc Zyngier <marc.zyngier@arm.com>2017-08-31 16:31:43 +0200
commit73c4c37c7e6ecc3cf921d182b733c9322ebed117 (patch)
tree519774683f1c347639e350d7a8e3f664dbddc8d7 /drivers/irqchip
parentirqchip/gic-v3: Advertise GICv4 support to KVM (diff)
downloadlinux-73c4c37c7e6ecc3cf921d182b733c9322ebed117.tar.xz
linux-73c4c37c7e6ecc3cf921d182b733c9322ebed117.zip
irqchip/gic: Make irq_chip const
Make this const as it is only used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'drivers/irqchip')
-rw-r--r--drivers/irqchip/irq-gic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c
index 1b1df4f770bd..6a089f3c4ace 100644
--- a/drivers/irqchip/irq-gic.c
+++ b/drivers/irqchip/irq-gic.c
@@ -410,7 +410,7 @@ static void gic_handle_cascade_irq(struct irq_desc *desc)
chained_irq_exit(chip, desc);
}
-static struct irq_chip gic_chip = {
+static const struct irq_chip gic_chip = {
.irq_mask = gic_mask_irq,
.irq_unmask = gic_unmask_irq,
.irq_eoi = gic_eoi_irq,