From 199e598fa847cd810913749cc729f2e22621d141 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Fri, 10 Apr 2020 10:48:39 +0800 Subject: [PATCH] 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 --- drivers/phy/phy-core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index d93ddf1262c5..e56bc020f695 100644 --- a/drivers/phy/phy-core.c +++ b/drivers/phy/phy-core.c @@ -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