]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Apr 2012 08:28:37 +0000 (10:28 +0200)
commit66df9385b8b9562d14831cf3098e237dc2cea8b4
tree0030f67e0351955a18642c9edcd5e51436b305e9
parent191ef4aae982b19ffb295971ab39ebcc3d188a4a
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>
Documentation/pinctrl.txt
drivers/pinctrl/pinctrl-coh901.c