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-mvebu | |
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-mvebu')
-rw-r--r-- | arch/arm/mach-mvebu/coherency.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-mvebu/pmsu.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-mvebu/coherency.c b/arch/arm/mach-mvebu/coherency.c index b5895f040caa..e46e9ea1e187 100644 --- a/arch/arm/mach-mvebu/coherency.c +++ b/arch/arm/mach-mvebu/coherency.c | |||
@@ -51,7 +51,7 @@ enum { | |||
51 | COHERENCY_FABRIC_TYPE_ARMADA_380, | 51 | COHERENCY_FABRIC_TYPE_ARMADA_380, |
52 | }; | 52 | }; |
53 | 53 | ||
54 | static struct of_device_id of_coherency_table[] = { | 54 | static const struct of_device_id of_coherency_table[] = { |
55 | {.compatible = "marvell,coherency-fabric", | 55 | {.compatible = "marvell,coherency-fabric", |
56 | .data = (void *) COHERENCY_FABRIC_TYPE_ARMADA_370_XP }, | 56 | .data = (void *) COHERENCY_FABRIC_TYPE_ARMADA_370_XP }, |
57 | {.compatible = "marvell,armada-375-coherency-fabric", | 57 | {.compatible = "marvell,armada-375-coherency-fabric", |
diff --git a/arch/arm/mach-mvebu/pmsu.c b/arch/arm/mach-mvebu/pmsu.c index d8ab605a44fa..8b9f5e202ccf 100644 --- a/arch/arm/mach-mvebu/pmsu.c +++ b/arch/arm/mach-mvebu/pmsu.c | |||
@@ -104,7 +104,7 @@ static void __iomem *pmsu_mp_base; | |||
104 | 104 | ||
105 | static void *mvebu_cpu_resume; | 105 | static void *mvebu_cpu_resume; |
106 | 106 | ||
107 | static struct of_device_id of_pmsu_table[] = { | 107 | static const struct of_device_id of_pmsu_table[] = { |
108 | { .compatible = "marvell,armada-370-pmsu", }, | 108 | { .compatible = "marvell,armada-370-pmsu", }, |
109 | { .compatible = "marvell,armada-370-xp-pmsu", }, | 109 | { .compatible = "marvell,armada-370-xp-pmsu", }, |
110 | { .compatible = "marvell,armada-380-pmsu", }, | 110 | { .compatible = "marvell,armada-380-pmsu", }, |