diff --git a/include/zephyr/linker/linker-devnull.h b/include/zephyr/linker/linker-devnull.h index 0545da7c8a5..d5455dd6da2 100644 --- a/include/zephyr/linker/linker-devnull.h +++ b/include/zephyr/linker/linker-devnull.h @@ -65,14 +65,10 @@ #error "Cannot place devnull segment adjacent to ROM region." #endif -#if defined(CONFIG_LINKER_DEVNULL_MEMORY) -#define DEVNULL_REGION DEVNULL_ROM -#else -#define DEVNULL_REGION ROMABLE_REGION -#endif - #endif /* CONFIG_XIP */ +#define DEVNULL_REGION DEVNULL_ROM + #endif /* CONFIG_LINKER_DEVNULL_MEMORY */ #endif /* ZEPHYR_INCLUDE_LINKER_LINKER_DEVNULL_H_ */