diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2014-09-10 12:26:17 +0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2014-09-11 23:37:23 +0400 |
commit | 31957609db529d401658adc2e91ef7df7ea42699 (patch) | |
tree | b020c9ed66a5e51135e1faaa04cc3fd799ce08bc /arch/arm/mach-omap2/common.h | |
parent | 58cda01ed18945c17ad858dfcf4a9a74ba70157c (diff) | |
download | linux-31957609db529d401658adc2e91ef7df7ea42699.tar.xz |
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/common.h')
-rw-r--r-- | arch/arm/mach-omap2/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/common.h b/arch/arm/mach-omap2/common.h index dc571f1d3b8a..79664411e794 100644 --- a/arch/arm/mach-omap2/common.h +++ b/arch/arm/mach-omap2/common.h @@ -307,7 +307,7 @@ static inline void omap4_cpu_resume(void) #endif -void pdata_quirks_init(struct of_device_id *); +void pdata_quirks_init(const struct of_device_id *); void omap_auxdata_legacy_init(struct device *dev); void omap_pcs_legacy_init(int irq, void (*rearm)(void)); |