]> git.baikalelectronics.ru Git - kernel.git/commitdiff
irqchip/gic-v2m: Add const to of_device_id
authorXiang wangx <wangxiang@cdjrlc.com>
Thu, 9 Dec 2021 13:24:53 +0000 (21:24 +0800)
committerMarc Zyngier <maz@kernel.org>
Thu, 16 Dec 2021 15:19:52 +0000 (15:19 +0000)
struct of_device_id should normally be const.

Signed-off-by: Xiang wangx <wangxiang@cdjrlc.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211209132453.25623-1-wangxiang@cdjrlc.com
drivers/irqchip/irq-gic-v2m.c

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