ARM: imx: Constify irq_domain_ops
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Mon, 27 Apr 2015 12:51:39 +0000 (21:51 +0900)
committerShawn Guo <shawn.guo@linaro.org>
Wed, 3 Jun 2015 06:49:33 +0000 (14:49 +0800)
The irq_domain_ops are not modified by the driver and the irqdomain core
code accepts pointer to a const data.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/gpc.c

index 4d60005e9277ce8f33307f411dd5c0baa8a6ac7a..9051dc02dc7939811bf5e31f56aeae2ec1c445e5 100644 (file)
@@ -227,7 +227,7 @@ static int imx_gpc_domain_alloc(struct irq_domain *domain,
        return irq_domain_alloc_irqs_parent(domain, irq, nr_irqs, &parent_args);
 }
 
-static struct irq_domain_ops imx_gpc_domain_ops = {
+static const struct irq_domain_ops imx_gpc_domain_ops = {
        .xlate  = imx_gpc_domain_xlate,
        .alloc  = imx_gpc_domain_alloc,
        .free   = irq_domain_free_irqs_common,
This page took 0.024653 seconds and 5 git commands to generate.