diff options
author | 2014-09-10 10:26:17 +0200 | |
---|---|---|
committer | 2014-09-11 12:37:23 -0700 | |
commit | 31957609db529d401658adc2e91ef7df7ea42699 (patch) | |
tree | b020c9ed66a5e51135e1faaa04cc3fd799ce08bc /arch/arm/mach-omap2/irq.c | |
parent | ARM: omap2: make arrays containing machine compatible strings const (diff) | |
download | linux-dev-31957609db529d401658adc2e91ef7df7ea42699.tar.xz linux-dev-31957609db529d401658adc2e91ef7df7ea42699.zip |
ARM: OMAP2+: make of_device_ids const
of_device_ids (i.e. compatible strings and the respective data) 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 function parameters and structs for OMAP2+ as const, too.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/irq.c')
-rw-r--r-- | arch/arm/mach-omap2/irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/irq.c b/arch/arm/mach-omap2/irq.c index 35b8590c322e..604a976abf14 100644 --- a/arch/arm/mach-omap2/irq.c +++ b/arch/arm/mach-omap2/irq.c @@ -289,7 +289,7 @@ int __init intc_of_init(struct device_node *node, return 0; } -static struct of_device_id irq_match[] __initdata = { +static const struct of_device_id irq_match[] __initconst = { { .compatible = "ti,omap2-intc", .data = intc_of_init, }, { } }; |