diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/include/pc80/mc146818rtc.h | 9 | ||||
-rw-r--r-- | src/lib/bootblock.c | 3 |
2 files changed, 3 insertions, 9 deletions
diff --git a/src/include/pc80/mc146818rtc.h b/src/include/pc80/mc146818rtc.h index 00606d4017..5fd07294b6 100644 --- a/src/include/pc80/mc146818rtc.h +++ b/src/include/pc80/mc146818rtc.h @@ -215,16 +215,9 @@ void cmos_post_log(void); static inline void cmos_post_log(void) {} #endif /* CONFIG_CMOS_POST */ -#if CONFIG(USE_OPTION_TABLE) -void sanitize_cmos(void); -#else -static inline void sanitize_cmos(void) {} -#endif /* CONFIG_USE_OPTION_TABLE */ - -#else /* !CONFIG_ARCH_X86 */ -static inline void sanitize_cmos(void) {} #endif /* CONFIG_ARCH_X86 */ +void sanitize_cmos(void); void cmos_post_init(void); #endif /* PC80_MC146818RTC_H */ diff --git a/src/lib/bootblock.c b/src/lib/bootblock.c index 6d40bc0075..beb6701cee 100644 --- a/src/lib/bootblock.c +++ b/src/lib/bootblock.c @@ -56,7 +56,8 @@ static void bootblock_main_with_timestamp(uint64_t base_timestamp, bootblock_soc_early_init(); bootblock_mainboard_early_init(); - sanitize_cmos(); + if (CONFIG(USE_OPTION_TABLE)) + sanitize_cmos(); if (CONFIG(CMOS_POST)) cmos_post_init(); |