init_volume_names() has to be called AFTER storage_init()

...So just move that call into storage_init and be done with it!

Hopefully this doesn't cause any functional regressions.

Change-Id: I08700fbd1613638606a23ee3a0c2149123c2c24a
This commit is contained in:
Solomon Peachy 2024-07-28 21:15:41 -04:00
parent 2363c7b095
commit e722334ab1
2 changed files with 19 additions and 17 deletions

View file

@ -761,7 +761,4 @@ void filesystem_init(void)
mrsw_init(&file_internal_mrsw);
dc_init();
fileobj_mgr_init();
#ifdef HAVE_MULTIVOLUME
init_volume_names();
#endif
}

View file

@ -23,6 +23,7 @@
#include "ata_idle_notify.h"
#include "usb.h"
#include "disk.h"
#include "pathfuncs.h"
#ifdef CONFIG_STORAGE_MULTI
@ -334,6 +335,10 @@ int storage_init(void)
rc = STORAGE_FUNCTION(init)();
#endif /* CONFIG_STORAGE_MULTI */
#ifdef HAVE_MULTIVOLUME
init_volume_names();
#endif
storage_thread_init();
return rc;
}