Skip to content

Commit 87029f7

Browse files
keith-packardhenrikbrixandersen
authored andcommitted
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>
1 parent fc24bd8 commit 87029f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎drivers/flash/soc_flash_mcux.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static status_t is_area_readable(uint32_t addr, size_t len)
115115

116116
return 0;
117117
}
118-
#endif /* CONFIG_CHECK_BEFORE_READING && ! CONFIG_SOC_LPC55S36 */
118+
#endif /* CONFIG_CHECK_BEFORE_READING && ! CONFIG_SOC_SERIES_LPC55XXX */
119119

120120
#define SOC_FLASH_NEED_CLEAR_CACHES 1
121121
#ifdef CONFIG_SOC_SERIES_MCXW

0 commit comments

Comments
 (0)