irqchip/gic-v3-its-platform-msi: Make of_device_ids const
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Thu, 22 Jun 2017 10:41:13 +0000 (16:11 +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-platform-msi.c

index 9e9dda33eb17460bd661c2a992a06594752bffb5..249240d9a4259eb72b7afb68c2e2723a72e7c9c5 100644 (file)
@@ -86,7 +86,7 @@ static struct msi_domain_info its_pmsi_domain_info = {
        .chip   = &its_pmsi_irq_chip,
 };
 
-static struct of_device_id its_device_id[] = {
+static const struct of_device_id its_device_id[] = {
        {       .compatible     = "arm,gic-v3-its",     },
        {},
 };