drivers: flash: stm32: change undefined variable causing build error
Replace an undefined variable. Signed-off-by: Andrew Sonzogni <andrew@safehear.fr>
This commit is contained in:
parent
24a2b6b004
commit
9ae9ee7ec4
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ int flash_stm32_check_configuration(void)
|
||||||
{
|
{
|
||||||
#if defined(STM32G0_DBANK_SUPPORT) && (CONFIG_FLASH_SIZE == 256)
|
#if defined(STM32G0_DBANK_SUPPORT) && (CONFIG_FLASH_SIZE == 256)
|
||||||
/* Single bank mode not supported on dual bank SoCs with 256kiB flash */
|
/* Single bank mode not supported on dual bank SoCs with 256kiB flash */
|
||||||
if ((regs->OPTR & FLASH_OPTR_DUAL_BANK) == 0) {
|
if ((FLASH->OPTR & FLASH_OPTR_DUAL_BANK) == 0) {
|
||||||
LOG_ERR("Single bank configuration not supported by the driver");
|
LOG_ERR("Single bank configuration not supported by the driver");
|
||||||
return -ENOTSUP;
|
return -ENOTSUP;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue