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
committed by Linus Walleij
parent 1dc9d28915
commit 4a4e5f6f77
3 changed files with 16 additions and 3 deletions

View File

@@ -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);