Browse Source

drivers/flash: Fix #if condition for is_area_readable for mcux

is_area_readable is used for SOCS other than LPC55XXX chips, not just
chips other than LPC55S36. Change the condition which elides this code
to avoid a GCC 14.3 warning.

Signed-off-by: Keith Packard <keithp@keithp.com>
pull/91566/head
Keith Packard 1 month ago committed by Henrik Brix Andersen
parent
commit
87029f7422
  1. 2
      drivers/flash/soc_flash_mcux.c

2
drivers/flash/soc_flash_mcux.c

@ -115,7 +115,7 @@ static status_t is_area_readable(uint32_t addr, size_t len) @@ -115,7 +115,7 @@ static status_t is_area_readable(uint32_t addr, size_t len)
return 0;
}
#endif /* CONFIG_CHECK_BEFORE_READING && ! CONFIG_SOC_LPC55S36 */
#endif /* CONFIG_CHECK_BEFORE_READING && ! CONFIG_SOC_SERIES_LPC55XXX */
#define SOC_FLASH_NEED_CLEAR_CACHES 1
#ifdef CONFIG_SOC_SERIES_MCXW

Loading…
Cancel
Save