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:
Tao Huang
2020-04-04 15:47:58 +08:00
parent 199e598fa8
commit b6512873ea

View File

@@ -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