diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2012-03-30 16:04:51 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-04-18 07:53:10 -0400 |
commit | 122dbe7e58c7d064a17eefd33205227e6bce85ca (patch) | |
tree | 99a7ece2870dc22cd58ec6897a921266b4f587c5 /Documentation/pinctrl.txt | |
parent | eb181c3533e8e5b3eaa96d3e8ed1cf5d9a408076 (diff) |
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>
Diffstat (limited to 'Documentation/pinctrl.txt')
-rw-r--r-- | Documentation/pinctrl.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/pinctrl.txt b/Documentation/pinctrl.txt index f2e27ef8e1b3..2d88b3c7b61c 100644 --- a/Documentation/pinctrl.txt +++ b/Documentation/pinctrl.txt | |||
@@ -786,7 +786,7 @@ and spi on the second function mapping: | |||
786 | 786 | ||
787 | #include <linux/pinctrl/machine.h> | 787 | #include <linux/pinctrl/machine.h> |
788 | 788 | ||
789 | static const struct pinctrl_map __initdata mapping[] = { | 789 | static const struct pinctrl_map mapping[] __initconst = { |
790 | { | 790 | { |
791 | .dev_name = "foo-spi.0", | 791 | .dev_name = "foo-spi.0", |
792 | .name = PINCTRL_STATE_DEFAULT, | 792 | .name = PINCTRL_STATE_DEFAULT, |