mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
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>
This commit is contained in:
parent
424a6c607c
commit
88aa9f74e2
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ struct u300_gpio_confdata {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initial configuration */
|
/* 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] = {
|
bs335_gpio_config[U300_GPIO_NUM_PORTS][U300_GPIO_PINS_PER_PORT] = {
|
||||||
/* Port 0, pins 0-7 */
|
/* Port 0, pins 0-7 */
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue