]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: mark const init data with __initconst instead of __initdata
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 29 Mar 2012 21:12:32 +0000 (23:12 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@linux.intel.com>
Fri, 27 Apr 2012 06:02:18 +0000 (09:02 +0300)
commit23c0dd7b3dae5fa787f192ff05df0e5798d07b12
treebba9cec079a3deb19c24fe2108989a0a23d87eb8
parent39781cde4f139bfafd4e3d4b5e2763ab605543fc
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 <u.kleine-koenig@pengutronix.de>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/maps/wr_sbc82xx_flash.c