char: misc: Call misc_init() early when CONFIG_INITCALL_ASYNC=y

rfkill_init() depends on misc_init() to init misc_class.
But rfkill_init() and misc_init() are both in the same
subsys_initcall level.

Fix this by move misc_init() to the arch_initcall_sync level.

Change-Id: I7266c2787c04a42886816b0ef11f3ed968ebf557
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2020-03-19 08:54:27 +08:00
parent 1b259eab60
commit 14b1dd2738

View File

@@ -290,4 +290,8 @@ fail_remove:
remove_proc_entry("misc", NULL);
return err;
}
#ifdef CONFIG_INITCALL_ASYNC
arch_initcall_sync(misc_init);
#else
subsys_initcall(misc_init);
#endif