From cb0381c832748db7b19afc1024178e7125ec2056 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_ROCKCHIP_THUNDER_BOOT=y 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 c309f645cded..4e3e4657c087 100644 --- a/drivers/phy/phy-core.c +++ b/drivers/phy/phy-core.c @@ -1063,7 +1063,11 @@ static int __init phy_core_init(void) return 0; } +#ifdef CONFIG_ROCKCHIP_THUNDER_BOOT +subsys_initcall(phy_core_init); +#else module_init(phy_core_init); +#endif static void __exit phy_core_exit(void) {