drivers/flash: stm32: DT_INST_0_SOC_NV_FLASH_LABEL is not dev name
Don't use DT_INST_0_SOC_NV_FLASH_LABEL as device name. Use DT_FLASH_DEV_NAME instead Fixes #23678 Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
b7f47f7805
commit
5cd10c70bd
1 changed files with 1 additions and 1 deletions
|
@ -327,6 +327,6 @@ static int stm32_flash_init(struct device *dev)
|
|||
return flash_stm32_write_protection(dev, false);
|
||||
}
|
||||
|
||||
DEVICE_AND_API_INIT(stm32_flash, DT_INST_0_SOC_NV_FLASH_LABEL,
|
||||
DEVICE_AND_API_INIT(stm32_flash, DT_FLASH_DEV_NAME,
|
||||
stm32_flash_init, &flash_data, NULL, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &flash_stm32_api);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue