init: Move file system initialization before clock/irq

since these subsystem may register the driver under /dev

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2020-09-17 12:49:02 +08:00 committed by YAMAMOTO Takashi
parent c695a5924f
commit 18c19c1198

View File

@ -613,6 +613,10 @@ void nx_start(void)
}
#endif
/* Initialize the file system (needed to support device drivers) */
fs_initialize();
/* Initialize the interrupt handling subsystem (if included) */
#ifdef CONFIG_HAVE_WEAKFUNCTIONS
@ -680,10 +684,6 @@ void nx_start(void)
}
#endif
/* Initialize the file system (needed to support device drivers) */
fs_initialize();
#ifdef CONFIG_NET
/* Initialize the networking system */