phy: core: Call phy_core_init() early when CONFIG_INITCALL_ASYNC=y

ohci_platform_init()/ehci_platform_init depends on phy_core_init() to init phy_class.
But ohci_platform_init()/ehci_platform_init and phy_core_init() are both in the same
device_initcall/module_init level.

Fix this by moving phy_core_init() to the subsys_initcall level.

Change-Id: I0bbe2e1a02001e2ba97c9dc8be96d651984784ef
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2020-04-10 10:48:39 +08:00
parent 14b1dd2738
commit 199e598fa8

View File

@@ -1235,4 +1235,8 @@ static int __init phy_core_init(void)
return 0;
}
#ifdef CONFIG_INITCALL_ASYNC
subsys_initcall(phy_core_init);
#else
device_initcall(phy_core_init);
#endif