From 846dc3f88008dba777d9f99fb95a2506072862a3 Mon Sep 17 00:00:00 2001 From: Keith Short Date: Wed, 15 Jan 2025 09:46:06 -0700 Subject: [PATCH] drivers: flash: npcx: Fix compile error Remove the #ifdef guard around a function prototype. This was causing a compile error when CONFIG_FLASH_NPCX_FIU_DRA_V2 was disabled. Signed-off-by: Keith Short --- drivers/flash/flash_npcx_fiu_qspi.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/flash/flash_npcx_fiu_qspi.h b/drivers/flash/flash_npcx_fiu_qspi.h index b9ac87b3b20..6e63dd8b076 100644 --- a/drivers/flash/flash_npcx_fiu_qspi.h +++ b/drivers/flash/flash_npcx_fiu_qspi.h @@ -97,7 +97,6 @@ void qspi_npcx_fiu_mutex_lock_configure(const struct device *dev, */ void qspi_npcx_fiu_mutex_unlock(const struct device *dev); -#if defined(CONFIG_FLASH_NPCX_FIU_DRA_V2) /** * @brief Set the size of the address space allocated for SPI device. * @@ -105,7 +104,6 @@ void qspi_npcx_fiu_mutex_unlock(const struct device *dev); * @param cfg Pointer to the configuration for the device on qspi bus. */ void qspi_npcx_fiu_set_spi_size(const struct device *dev, const struct npcx_qspi_cfg *cfg); -#endif #ifdef __cplusplus }