From cb7fcb963e873861cd8b5376065ba5f3d66ad299 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Sat, 4 Apr 2020 15:49:56 +0800 Subject: [PATCH] regulator: core: Call regulator_init later when CONFIG_ROCKCHIP_THUNDER_BOOT=y Change-Id: I302079e585f374a7fddd207e6fd740b61b0df52c Signed-off-by: Tao Huang --- drivers/regulator/core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 9c4fe4dd075b..54a05b8f6f95 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -5142,7 +5142,11 @@ static int __init regulator_init(void) } /* init early to allow our consumers to complete system booting */ +#ifdef CONFIG_ROCKCHIP_THUNDER_BOOT +core_initcall_sync(regulator_init); +#else core_initcall(regulator_init); +#endif static int regulator_late_cleanup(struct device *dev, void *data) {