From 18c19c1198555e9bdc67d6a892b311d89c69a930 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Thu, 17 Sep 2020 12:49:02 +0800 Subject: [PATCH] init: Move file system initialization before clock/irq since these subsystem may register the driver under /dev Signed-off-by: Xiang Xiao --- sched/init/nx_start.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sched/init/nx_start.c b/sched/init/nx_start.c index b11de625558..927f8ff9548 100644 --- a/sched/init/nx_start.c +++ b/sched/init/nx_start.c @@ -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 */