disk: flashdisk: init in POST_KERNEL
Initialise flashdisk devices in `POST_KERNEL` instead of `APPLICATION`. This aligns with the other disk drivers, which are all `POST_KERNEL`, and causes no problems as `disk_access_register` is a purely software action and does not perform any operations on the underlying device. Signed-off-by: Jordan Yates <jordan@embeint.com>
This commit is contained in:
parent
9cb58cf53a
commit
5e2a4bca06
1 changed files with 1 additions and 1 deletions
|
|
@ -531,4 +531,4 @@ static int disk_flash_init(void)
|
|||
return err;
|
||||
}
|
||||
|
||||
SYS_INIT(disk_flash_init, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
SYS_INIT(disk_flash_init, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
|
|
|
|||
Loading…
Reference in a new issue