irqchip/gic-v3-its: Make of_device_ids const
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Thu, 22 Jun 2017 10:35:30 +0000 (16:05 +0530)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 23 Jun 2017 08:14:58 +0000 (09:14 +0100)
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>
drivers/irqchip/irq-gic-v3-its.c

index b33528026c5c3d839f4864d38e660ef13771a8f3..fee7d13a558702bdcd262734cd890d65143903f0 100644 (file)
@@ -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",     },
        {},
 };