diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-06-22 12:41:13 +0200 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2017-06-23 10:14:58 +0200 |
commit | 5b8670612d4014f33d9f130693bfba5327726411 (patch) | |
tree | 5c5611c1fd7f8674f229a169f8aeb26692500676 /drivers | |
parent | irqchip/gic-v3-its: Make of_device_ids const (diff) | |
download | linux-5b8670612d4014f33d9f130693bfba5327726411.tar.xz linux-5b8670612d4014f33d9f130693bfba5327726411.zip |
irqchip/gic-v3-its-platform-msi: Make of_device_ids const
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/irqchip/irq-gic-v3-its-platform-msi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/irqchip/irq-gic-v3-its-platform-msi.c b/drivers/irqchip/irq-gic-v3-its-platform-msi.c index 9e9dda33eb17..249240d9a425 100644 --- a/drivers/irqchip/irq-gic-v3-its-platform-msi.c +++ b/drivers/irqchip/irq-gic-v3-its-platform-msi.c @@ -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", }, {}, }; |