mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user