mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 02:21:52 +09:00
kernel/ksysfs.c: Call ksysfs_init() early when CONFIG_INITCALL_ASYNC=y
configfs_init()/debugfs_init() depends on ksysfs_init() to init kernel_kobj. But configfs_init()/debugfs_init() and ksysfs_init() are both in the same core_initcall level. Fix this by move ksysfs_init() to the pure_initcall level. Change-Id: Iaa23a25a59b3a133f3cecb396fc69dd7e65d45ad Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
@@ -270,4 +270,8 @@ exit:
|
||||
return error;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_INITCALL_ASYNC
|
||||
pure_initcall(ksysfs_init);
|
||||
#else
|
||||
core_initcall(ksysfs_init);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user