From bf9dd729dc744396d3b6a7d14b0531feed19ba86 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_INITCALL_ASYNC=y regulator_init() depends on debugfs_init() to register debugfs filesystem. But regulator_init() and debugfs_init() are both in the same core_initcall level. Fix this by moving regulator_init() to the core_initcall_sync level. Change-Id: I302079e585f374a7fddd207e6fd740b61b0df52c Signed-off-by: Tao Huang --- drivers/regulator/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 16e365b87233..3bdf9a7b13ac 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -6543,7 +6543,7 @@ static int __init regulator_init(void) } /* init early to allow our consumers to complete system booting */ -#ifdef CONFIG_ROCKCHIP_THUNDER_BOOT +#if defined(CONFIG_DEBUG_FS) && defined(CONFIG_INITCALL_ASYNC) core_initcall_sync(regulator_init); #else core_initcall(regulator_init);