ARM: fix const declaration of platform struct
authorAndre Przywara <andre.przywara@linaro.org>
Thu, 22 Aug 2013 07:40:54 +0000 (09:40 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 22 Aug 2013 12:12:33 +0000 (13:12 +0100)
As Julien pointed out the other day, the data type for the platform
DT name match struct is wrong.
To be really immutable, we have to use "const char * const".

Fix it on the three currently existing platforms.

Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/platforms/exynos5.c
xen/arch/arm/platforms/midway.c
xen/arch/arm/platforms/vexpress.c

index 1368a04c14827ce5f887d8e1e2007151ccb152c5..262ded8b980d62c32e6af3ad12236570ced91238 100644 (file)
@@ -86,7 +86,7 @@ static uint32_t exynos5_quirks(void)
     return PLATFORM_QUIRK_DOM0_MAPPING_11;
 }
 
-static const char const *exynos5_dt_compat[] __initdata =
+static const char * const exynos5_dt_compat[] __initdata =
 {
     "samsung,exynos5250",
     NULL
index 2d3be1b5c6265fcb1cb402f289cd080bbc9c9527..7a3dfe1899383a9b4aef598ba2e7456ca2cec7d7 100644 (file)
@@ -41,7 +41,7 @@ static void midway_reset(void)
     iounmap(pmu);
 }
 
-static const char const *midway_dt_compat[] __initdata =
+static const char * const midway_dt_compat[] __initdata =
 {
     "calxeda,ecx-2000",
     NULL
index 8fc30c4d48166a84fcc2899e523f398c49c9030d..6f7dc2c811a84ebf4b85175e81360c0143be1c2e 100644 (file)
@@ -119,7 +119,7 @@ static void vexpress_reset(void)
     iounmap(sp810);
 }
 
-static const char const *vexpress_dt_compat[] __initdata =
+static const char * const vexpress_dt_compat[] __initdata =
 {
     "arm,vexpress",
     NULL