char: misc: Call misc_init() early when CONFIG_ROCKCHIP_THUNDER_BOOT=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 46c51fd1a7
commit 3c4024e350

View File

@ -289,4 +289,8 @@ static int __init misc_init(void)
remove_proc_entry("misc", NULL);
return err;
}
#ifdef CONFIG_ROCKCHIP_THUNDER_BOOT
arch_initcall_sync(misc_init);
#else
subsys_initcall(misc_init);
#endif