pinctrl: mark const init data with __initconst instead of __initdata
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fri, 30 Mar 2012 20:04:51 +0000 (22:04 +0200)
committerPritesh Raithatha <praithatha@nvidia.com>
Thu, 11 Oct 2012 09:05:49 +0000 (14:05 +0530)
commit016b0ad9d89b7cefce7767320e25da7c34805396
treeaa2eb19a9e452554a5bd8ec6981ab00868559028
parent03ee2252657e86d6494dd173f399a00af6c5e7f9
pinctrl: 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>
Cc: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
(cherry picked from commit 122dbe7e58c7d064a17eefd33205227e6bce85ca)

Change-Id: Id03a455b6aedaae89a2d2ea9865dd4aa28f7b77e
Signed-off-by: Pritesh Raithatha <praithatha@nvidia.com>
Documentation/pinctrl.txt
drivers/pinctrl/pinctrl-coh901.c