ARC: [arcfpga] Fix __initconst data const-correctness
authorMischa Jonker <mjonker@synopsys.com>
Mon, 27 Jan 2014 14:34:17 +0000 (15:34 +0100)
committerVineet Gupta <vgupta@synopsys.com>
Wed, 26 Mar 2014 09:01:25 +0000 (14:31 +0530)
Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/plat-arcfpga/platform.c

index d71f3c3bcf24247653c0c3d4d702c80ce62bee43..19b76b61f44bfc2b1b560a240347aa435fcb87ff 100644 (file)
@@ -201,7 +201,7 @@ static void __init plat_fpga_populate_dev(void)
  * callback set, by matching the DT compatible name.
  */
 
-static const char *aa4_compat[] __initdata = {
+static const char *aa4_compat[] __initconst = {
        "snps,arc-angel4",
        NULL,
 };
@@ -216,7 +216,7 @@ MACHINE_START(ANGEL4, "angel4")
 #endif
 MACHINE_END
 
-static const char *ml509_compat[] __initdata = {
+static const char *ml509_compat[] __initconst = {
        "snps,arc-ml509",
        NULL,
 };
@@ -231,7 +231,7 @@ MACHINE_START(ML509, "ml509")
 #endif
 MACHINE_END
 
-static const char *nsimosci_compat[] __initdata = {
+static const char *nsimosci_compat[] __initconst = {
        "snps,nsimosci",
        NULL,
 };