]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
pinctrl: coh901: fix initconst annotation
authorArnd Bergmann <arnd@arndb.de>
Mon, 8 Feb 2016 14:29:49 +0000 (15:29 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 15 Feb 2016 19:40:52 +0000 (20:40 +0100)
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>
drivers/pinctrl/pinctrl-coh901.c

index cf7788df0f954a964362e21f4515a0ac87d70d0c..741b39eaeb8be83e1577d196ee5b2b3f248f0a3d 100644 (file)
@@ -127,7 +127,7 @@ struct u300_gpio_confdata {
 }
 
 /* Initial configuration */
-static const struct __initconst u300_gpio_confdata
+static const struct u300_gpio_confdata __initconst
 bs335_gpio_config[U300_GPIO_NUM_PORTS][U300_GPIO_PINS_PER_PORT] = {
        /* Port 0, pins 0-7 */
        {