Skip to content

Commit

Permalink
zephyr: update SYS_INIT calls
Browse files Browse the repository at this point in the history
Use the new call signature: int (*init_fn)(void);

Signed-off-by: Gerard Marull-Paretas <[email protected]>
  • Loading branch information
gmarull authored and carlescufi committed Apr 12, 2023
1 parent 7fcde7c commit 7dfbc47
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/init/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,8 @@ int sof_main(int argc, char *argv[])

struct device;

static int sof_init(const struct device *dev)
static int sof_init(void)
{
ARG_UNUSED(dev);

return primary_core_init(0, NULL, &sof);
}
Expand Down
3 changes: 1 addition & 2 deletions zephyr/lib/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,8 @@ void rfree(void *ptr)
heap_free(&sof_heap, ptr);
}

static int heap_init(const struct device *unused)
static int heap_init(void)
{
ARG_UNUSED(unused);

sys_heap_init(&sof_heap.heap, heapmem, HEAPMEM_SIZE);

Expand Down
3 changes: 1 addition & 2 deletions zephyr/lib/regions_mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ struct virtual_memory_heap
* virtual first heaps.
* Has to be initialized after calculations for regions is done in zephyr.
*/
static int virtual_heaps_init(const struct device *unused)
static int virtual_heaps_init(void)
{
ARG_UNUSED(unused);

struct sys_mm_drv_region *virtual_memory_regions =
(struct sys_mm_drv_region *)sys_mm_drv_query_memory_regions();
Expand Down

0 comments on commit 7dfbc47

Please sign in to comment.