Skip to content

Commit

Permalink
irqchip/gic-v3-its: Make of_device_ids const
Browse files Browse the repository at this point in the history
of_device_ids are not supposed to change at runtime. All functions
working with of_device_ids provided by <linux/of.h> work with const
of_device_ids. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
  • Loading branch information
Arvind Yadav authored and Marc Zyngier committed Jun 23, 2017
1 parent e0de91a commit 935bba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/irqchip/irq-gic-v3-its.c
Original file line number Diff line number Diff line change
Expand Up @@ -1804,7 +1804,7 @@ int its_cpu_init(void)
return 0;
}

static struct of_device_id its_device_id[] = {
static const struct of_device_id its_device_id[] = {
{ .compatible = "arm,gic-v3-its", },
{},
};
Expand Down

0 comments on commit 935bba7

Please sign in to comment.