mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
pinctrl: core: Call pinctrl_init() later when CONFIG_INITCALL_ASYNC=y
pinctrl_init() depends on debugfs_init() to register debugfs filesystem. But pinctrl_init() and debugfs_init() are both in the same core_initcall level. Fix this by moving pinctrl_init() to the core_initcall_sync level. Change-Id: I3b0741b8d32c6b05c7b15e20da6c410d26245745 Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
@@ -2338,4 +2338,8 @@ static int __init pinctrl_init(void)
|
||||
}
|
||||
|
||||
/* init early since many drivers really need to initialized pinmux early */
|
||||
#if defined(CONFIG_DEBUG_FS) && defined(CONFIG_INITCALL_ASYNC)
|
||||
core_initcall_sync(pinctrl_init);
|
||||
#else
|
||||
core_initcall(pinctrl_init);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user