aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/pdata-quirks.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2014-09-10 04:26:17 -0400
committerTony Lindgren <tony@atomide.com>2014-09-11 15:37:23 -0400
commit31957609db529d401658adc2e91ef7df7ea42699 (patch)
treeb020c9ed66a5e51135e1faaa04cc3fd799ce08bc /arch/arm/mach-omap2/pdata-quirks.c
parent58cda01ed18945c17ad858dfcf4a9a74ba70157c (diff)
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/pdata-quirks.c')
-rw-r--r--arch/arm/mach-omap2/pdata-quirks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c
index 90c88d498485..05a8c8b07449 100644
--- a/arch/arm/mach-omap2/pdata-quirks.c
+++ b/arch/arm/mach-omap2/pdata-quirks.c
@@ -405,7 +405,7 @@ static void pdata_quirks_check(struct pdata_init *quirks)
405 } 405 }
406} 406}
407 407
408void __init pdata_quirks_init(struct of_device_id *omap_dt_match_table) 408void __init pdata_quirks_init(const struct of_device_id *omap_dt_match_table)
409{ 409{
410 omap_sdrc_init(NULL, NULL); 410 omap_sdrc_init(NULL, NULL);
411 pdata_quirks_check(auxdata_quirks); 411 pdata_quirks_check(auxdata_quirks);