Skip to content

Commit

Permalink
mfd: Mark const init data with __initconst instead of __initdata for …
Browse files Browse the repository at this point in the history
…ab5500

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 <u.kleine-koenig@pengutronix.de>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Uwe Kleine-König authored and Samuel Ortiz committed May 1, 2012
1 parent 69964ea commit f4bf7cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/ab5500-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,7 @@ struct ab_family_id {
char *name;
};

static const struct ab_family_id ids[] __initdata = {
static const struct ab_family_id ids[] __initconst = {
/* AB5500 */
{
.id = AB5500_1_0,
Expand Down

0 comments on commit f4bf7cf

Please sign in to comment.