From 8e726b7363365459ab07b6f68e579b15a3ea8693 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Mon, 29 Mar 2010 23:01:35 +0000 Subject: Don't include option_table.h every time we include mc146818rtc.h, that was a stupid idea. Instead include it where it is needed. And add some explicit dependencies to it. Also, error for missing IRQ_SLOT_COUNT for now, so we can fix up the boards. Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5321 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/pc80/mc146818rtc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/pc80/mc146818rtc.c') diff --git a/src/pc80/mc146818rtc.c b/src/pc80/mc146818rtc.c index 1b39db2..4bee1cd 100644 --- a/src/pc80/mc146818rtc.c +++ b/src/pc80/mc146818rtc.c @@ -3,6 +3,9 @@ #include #include #include +#if CONFIG_HAVE_OPTION_TABLE +#include +#endif /* control registers - Moto names */ @@ -257,7 +260,7 @@ int get_option(void *dest, const char *name) } } if(!found) { - printk(BIOS_DEBUG, "WARNING: No cmos option '%s'\n", name); + printk(BIOS_DEBUG, "WARNING: No CMOS option '%s'.\n", name); return(-2); } -- cgit v1.1