struct of_device_id should normally be const.
Signed-off-by: Xiang wangx <[email protected]>
---
drivers/irqchip/irq-gic-v2m.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/irqchip/irq-gic-v2m.c b/drivers/irqchip/irq-gic-v2m.c
index 9349fc68b81a..f2d252dff5f3 100644
--- a/drivers/irqchip/irq-gic-v2m.c
+++ b/drivers/irqchip/irq-gic-v2m.c
@@ -405,7 +405,7 @@ static int __init gicv2m_init_one(struct fwnode_handle *fwnode,
return ret;
}
-static struct of_device_id gicv2m_device_id[] = {
+static const struct of_device_id gicv2m_device_id[] = {
{ .compatible = "arm,gic-v2m-frame", },
{},
};
--
2.20.1
The following commit has been merged into the irq/irqchip-next branch of irqchip:
Commit-ID: c10f2f8b5d8027c1ea77f777f2d16cb9043a6c09
Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/c10f2f8b5d8027c1ea77f777f2d16cb9043a6c09
Author: Xiang wangx <[email protected]>
AuthorDate: Thu, 09 Dec 2021 21:24:53 +08:00
Committer: Marc Zyngier <[email protected]>
CommitterDate: Thu, 16 Dec 2021 15:19:52
irqchip/gic-v2m: Add const to of_device_id
struct of_device_id should normally be const.
Signed-off-by: Xiang wangx <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
---
drivers/irqchip/irq-gic-v2m.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/irqchip/irq-gic-v2m.c b/drivers/irqchip/irq-gic-v2m.c
index 9349fc6..f2d252d 100644
--- a/drivers/irqchip/irq-gic-v2m.c
+++ b/drivers/irqchip/irq-gic-v2m.c
@@ -405,7 +405,7 @@ err_free_v2m:
return ret;
}
-static struct of_device_id gicv2m_device_id[] = {
+static const struct of_device_id gicv2m_device_id[] = {
{ .compatible = "arm,gic-v2m-frame", },
{},
};