From: Simon Horman Date: Fri, 27 Dec 2013 03:14:08 +0000 (+0900) Subject: ARM: shmobile: emev2: Use __initconst for const init definition X-Git-Tag: v3.14.28+ltsi~767 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=78e5b22bd5d8cb6459efdc4fa95bf2ecb2354b98;p=platform%2Fkernel%2Flinux-stable.git ARM: shmobile: emev2: Use __initconst for const init definition __initconst must be used instead of __initdata for const init definitions. This problem was introduced by 3d5de27174955702 ("mach-shmobile: Emma Mobile EV2 DT support V3") in v3.4-rc7. Reported-by: Fengguang Wu Signed-off-by: Simon Horman (cherry picked from commit d24d1780c340777942061ef3445edcf228e8d35b) Signed-off-by: Simon Horman --- diff --git a/arch/arm/mach-shmobile/setup-emev2.c b/arch/arm/mach-shmobile/setup-emev2.c index c8f2a1a..c71d667 100644 --- a/arch/arm/mach-shmobile/setup-emev2.c +++ b/arch/arm/mach-shmobile/setup-emev2.c @@ -58,7 +58,7 @@ static void __init emev2_add_standard_devices_dt(void) of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); } -static const char *emev2_boards_compat_dt[] __initdata = { +static const char *emev2_boards_compat_dt[] __initconst = { "renesas,emev2", NULL, };