Skip to content

Commit

Permalink
ARM: imx: Constify irq_domain_ops
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Krzysztof Kozlowski authored and Shawn Guo committed Jun 3, 2015
1 parent 7a5568c commit 9b589a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/gpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9b589a8

Please sign in to comment.