pinctrl: stm32: replace device_initcall() with arch_initcall()

Pinctrl has to be registered earlier. Mainly to register bank irqdomain
earlier as other devices could use interrupts from those irqdomain.

Signed-off-by: Alexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Alexandre TORGUE 2017-04-07 17:10:09 +02:00 коммит произвёл Linus Walleij
Родитель 1dc9d28915
Коммит 4a4e5f6f77
3 изменённых файлов: 16 добавлений и 3 удалений

Просмотреть файл

@ -1584,4 +1584,8 @@ static struct platform_driver stm32f429_pinctrl_driver = {
},
};
builtin_platform_driver(stm32f429_pinctrl_driver);
static int __init stm32f429_pinctrl_init(void)
{
return platform_driver_register(&stm32f429_pinctrl_driver);
}
arch_initcall(stm32f429_pinctrl_init);

Просмотреть файл

@ -1678,4 +1678,9 @@ static struct platform_driver stm32f746_pinctrl_driver = {
.of_match_table = stm32f746_pctrl_match,
},
};
builtin_platform_driver(stm32f746_pinctrl_driver);
static int __init stm32f746_pinctrl_init(void)
{
return platform_driver_register(&stm32f746_pinctrl_driver);
}
arch_initcall(stm32f746_pinctrl_init);

Просмотреть файл

@ -1977,4 +1977,8 @@ static struct platform_driver stm32h743_pinctrl_driver = {
},
};
builtin_platform_driver(stm32h743_pinctrl_driver);
static int __init stm32h743_pinctrl_init(void)
{
return platform_driver_register(&stm32h743_pinctrl_driver);
}
arch_initcall(stm32h743_pinctrl_init);