]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mfd: Mark const init data with __initconst instead of __initdata for ab5500
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 30 Mar 2012 20:04:56 +0000 (22:04 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 16 Apr 2012 10:29:29 +0000 (12:29 +0200)
commit9ea969f0d79da44309e0c4ae156058cab5ec5301
treeb0ecab08acfed7ff9e2b7b337e96a83e8827c114
parente816b57a337ea3b755de72bec38c10c864f23015
mfd: Mark const init data with __initconst instead of __initdata for 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>
drivers/mfd/ab5500-core.c