]> 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, 13 Apr 2012 15:39:43 +0000 (18:39 +0300)
commit6f3882cbaeb3134b59c4d685f250bdbd14fd5bbc
tree4f79eb533edffe9526e856fbc5f0695aeafa2a51
parent9bf6f577a5ff638ba449a7b9277e2aa64f89b846
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