irqchip/irq-mips-gic: Constify irq_domain_ops
authorTobias Klauser <tklauser@distanz.ch>
Fri, 2 Jun 2017 08:20:56 +0000 (10:20 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 22 Jun 2017 13:13:07 +0000 (14:13 +0100)
struct irq_domain_ops is not modified, so it can be made const.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-mips-gic.c

index eb7fbe15996304fc9eecca11a2b71b70bffd284d..65642a78b8a37e240c8c8b09e34a37835cf6b735 100644 (file)
@@ -874,7 +874,7 @@ int gic_ipi_domain_match(struct irq_domain *d, struct device_node *node,
        }
 }
 
-static struct irq_domain_ops gic_ipi_domain_ops = {
+static const struct irq_domain_ops gic_ipi_domain_ops = {
        .xlate = gic_ipi_domain_xlate,
        .alloc = gic_ipi_domain_alloc,
        .free = gic_ipi_domain_free,