diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-02-08 09:29:49 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-02-15 14:40:52 -0500 |
commit | 88aa9f74e23543307f3475b64d65f85cb91729cd (patch) | |
tree | 3f818933b512374abefee6bcee60318381d9ac7a | |
parent | 424a6c607c169ca0ac8431424f28fc839b45b14c (diff) |
pinctrl: coh901: fix initconst annotation
Clang correctly points out that the section attribute for u300_gpio_confdata
is in the wrong place:
drivers/pinctrl/pinctrl-coh901.c:130:37: error: '__section__' attribute only applies to functions and global variables
This moves it from the type name to the variable, so it actually gets
discarded.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/pinctrl/pinctrl-coh901.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-coh901.c b/drivers/pinctrl/pinctrl-coh901.c index cf7788df0f95..741b39eaeb8b 100644 --- a/drivers/pinctrl/pinctrl-coh901.c +++ b/drivers/pinctrl/pinctrl-coh901.c | |||
@@ -127,7 +127,7 @@ struct u300_gpio_confdata { | |||
127 | } | 127 | } |
128 | 128 | ||
129 | /* Initial configuration */ | 129 | /* Initial configuration */ |
130 | static const struct __initconst u300_gpio_confdata | 130 | static const struct u300_gpio_confdata __initconst |
131 | bs335_gpio_config[U300_GPIO_NUM_PORTS][U300_GPIO_PINS_PER_PORT] = { | 131 | bs335_gpio_config[U300_GPIO_NUM_PORTS][U300_GPIO_PINS_PER_PORT] = { |
132 | /* Port 0, pins 0-7 */ | 132 | /* Port 0, pins 0-7 */ |
133 | { | 133 | { |