From: Uwe Kleine-König Date: Thu, 29 Mar 2012 21:12:32 +0000 (+0200) Subject: mtd: mark const init data with __initconst instead of __initdata X-Git-Tag: MMI-PSA29.97-13-9~16607^2~69 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6d56b9d65813dd6a184efc5e7955d7e181a853c0;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git mtd: mark const init data with __initconst instead of __initdata As long as there is no other non-const variable marked __initdata in the same compilation unit it doesn't hurt. If there were one however compilation would fail with error: $variablename causes a section type conflict because a section containing const variables is marked read only and so cannot contain non-const variables. Signed-off-by: Uwe Kleine-König Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/maps/wr_sbc82xx_flash.c b/drivers/mtd/maps/wr_sbc82xx_flash.c index 71b0ba797912..e7534c82f93a 100644 --- a/drivers/mtd/maps/wr_sbc82xx_flash.c +++ b/drivers/mtd/maps/wr_sbc82xx_flash.c @@ -59,7 +59,7 @@ static struct mtd_partition bigflash_parts[] = { } }; -static const char *part_probes[] __initdata = {"cmdlinepart", "RedBoot", NULL}; +static const char *part_probes[] __initconst = {"cmdlinepart", "RedBoot", NULL}; #define init_sbc82xx_one_flash(map, br, or) \ do { \