mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-18 06:50:08 +00:00
pinctrl: nomadik: depromote GPIO to subsystem_init()
We no longer have to do GPIO initialization before the pinctrl initialization, instead we can initialize the pinctrl portions of the driver first and then the GPIO. Thus we can move GPIO initialization to a subsystem_initcall(), but not yet to a device_initcall(). Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
ee04139d91
commit
802bb9b67d
@ -2102,15 +2102,15 @@ static struct platform_driver nmk_pinctrl_driver = {
|
|||||||
|
|
||||||
static int __init nmk_gpio_init(void)
|
static int __init nmk_gpio_init(void)
|
||||||
{
|
{
|
||||||
int ret;
|
return platform_driver_register(&nmk_gpio_driver);
|
||||||
|
}
|
||||||
|
subsys_initcall(nmk_gpio_init);
|
||||||
|
|
||||||
ret = platform_driver_register(&nmk_gpio_driver);
|
static int __init nmk_pinctrl_init(void)
|
||||||
if (ret)
|
{
|
||||||
return ret;
|
|
||||||
return platform_driver_register(&nmk_pinctrl_driver);
|
return platform_driver_register(&nmk_pinctrl_driver);
|
||||||
}
|
}
|
||||||
|
core_initcall(nmk_pinctrl_init);
|
||||||
core_initcall(nmk_gpio_init);
|
|
||||||
|
|
||||||
MODULE_AUTHOR("Prafulla WADASKAR and Alessandro Rubini");
|
MODULE_AUTHOR("Prafulla WADASKAR and Alessandro Rubini");
|
||||||
MODULE_DESCRIPTION("Nomadik GPIO Driver");
|
MODULE_DESCRIPTION("Nomadik GPIO Driver");
|
||||||
|
Loading…
Reference in New Issue
Block a user