diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2010-03-17 03:44:45 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-03-17 03:44:45 +0000 |
commit | 2549d52c045d88518f36d48c44ca7d6777e9f17e (patch) | |
tree | df458deacf28ae702b06f6534916f7e175766310 /src/pc80 | |
parent | 5c32d242e475bcc40a92538efc4ac0fa9d21c7af (diff) |
fix minor warnings in RTC code when HAVE_OPTION_TABLE is disabled.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5246 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/pc80')
-rw-r--r-- | src/pc80/mc146818rtc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pc80/mc146818rtc.c b/src/pc80/mc146818rtc.c index 6978709379..e318167b42 100644 --- a/src/pc80/mc146818rtc.c +++ b/src/pc80/mc146818rtc.c @@ -95,6 +95,7 @@ static inline void cmos_write(unsigned char val, unsigned char addr) outb(val, RTC_BASE_PORT + offs + 1); } +#if CONFIG_HAVE_OPTION_TABLE static int rtc_checksum_valid(int range_start, int range_end, int cks_loc) { int i; @@ -120,6 +121,7 @@ static void rtc_set_checksum(int range_start, int range_end, int cks_loc) cmos_write(((sum >> 8) & 0x0ff), cks_loc); cmos_write(((sum >> 0) & 0x0ff), cks_loc+1); } +#endif #if CONFIG_ARCH_X86 #define RTC_CONTROL_DEFAULT (RTC_24H) |