host: convert to Zephyr native initialisation

Use SOF_MODULE_INIT() to register host with the Zephyr
initialisation framework.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
This commit is contained in:
Guennadi Liakhovetski 2023-01-24 16:09:56 +01:00 committed by Kai Vehmanen
parent 602205f40a
commit 16bf62c2cc
3 changed files with 4 additions and 4 deletions

View File

@ -14,6 +14,7 @@
#include <sof/debug/panic.h>
#include <sof/ipc/msg.h>
#include <rtos/alloc.h>
#include <rtos/init.h>
#include <sof/lib/dma.h>
#include <sof/lib/mailbox.h>
#include <sof/lib/memory.h>
@ -1101,3 +1102,4 @@ UT_STATIC void sys_comp_host_init(void)
}
DECLARE_MODULE(sys_comp_host_init);
SOF_MODULE_INIT(host, sys_comp_host_init);

View File

@ -14,6 +14,7 @@
#include <sof/debug/panic.h>
#include <sof/ipc/msg.h>
#include <rtos/alloc.h>
#include <rtos/init.h>
#include <sof/lib/dma.h>
#include <sof/lib/mailbox.h>
#include <sof/lib/memory.h>
@ -1174,3 +1175,4 @@ UT_STATIC void sys_comp_host_init(void)
}
DECLARE_MODULE(sys_comp_host_init);
SOF_MODULE_INIT(host, sys_comp_host_init);

View File

@ -182,7 +182,6 @@ static void sys_module_init(void)
* constructors directly atm.
*/
void sys_comp_host_init(void);
void sys_comp_mux_init(void);
void sys_comp_asrc_init(void);
void sys_comp_dcblock_init(void);
@ -237,9 +236,6 @@ int task_main_start(struct sof *sof)
/* init self-registered modules */
sys_module_init();
/* host is mandatory */
sys_comp_host_init();
/* init pipeline position offsets */
pipeline_posn_init(sof);