diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2015-02-18 15:19:56 -0500 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2015-02-19 03:44:25 -0500 |
commit | 444d2d33d8564f95df851ddaca80f640ca36934d (patch) | |
tree | 2fa4198807c79f1e670f3f8a934786a203bcab09 /arch/arm/mach-at91/at91rm9200_time.c | |
parent | 543c5040f564c80fe59ae82a60fc061055d04a41 (diff) |
ARM: 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 structs in arch/arm as const, too.
While at it also add some __initconst annotations.
Acked-by: Jason Cooper <jason@lakedameon.net>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/mach-at91/at91rm9200_time.c')
-rw-r--r-- | arch/arm/mach-at91/at91rm9200_time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/at91rm9200_time.c b/arch/arm/mach-at91/at91rm9200_time.c index 51761f8927b7..b00d09555f2b 100644 --- a/arch/arm/mach-at91/at91rm9200_time.c +++ b/arch/arm/mach-at91/at91rm9200_time.c | |||
@@ -183,7 +183,7 @@ static struct clock_event_device clkevt = { | |||
183 | void __iomem *at91_st_base; | 183 | void __iomem *at91_st_base; |
184 | EXPORT_SYMBOL_GPL(at91_st_base); | 184 | EXPORT_SYMBOL_GPL(at91_st_base); |
185 | 185 | ||
186 | static struct of_device_id at91rm9200_st_timer_ids[] = { | 186 | static const struct of_device_id at91rm9200_st_timer_ids[] = { |
187 | { .compatible = "atmel,at91rm9200-st" }, | 187 | { .compatible = "atmel,at91rm9200-st" }, |
188 | { /* sentinel */ } | 188 | { /* sentinel */ } |
189 | }; | 189 | }; |