Remove nonsensical wrapper for function in
[coreboot.git] / src / include / pc80 / mc146818rtc.h
index 9edb550da5c711c6481018bb545a84916b3e97f9..1561e4e811ce6968134990da44d9583899177618 100644 (file)
 #define PC_CKS_LOC             46
 
 /* Linux bios checksum is built only over bytes 49..125 */
-#ifndef LB_CKS_RANGE_START
-#define LB_CKS_RANGE_START     49
+#ifndef CONFIG_LB_CKS_RANGE_START
+#define CONFIG_LB_CKS_RANGE_START      49
 #endif
-#ifndef LB_CKS_RANGE_END
-#define LB_CKS_RANGE_END       125
+#ifndef CONFIG_LB_CKS_RANGE_END
+#define CONFIG_LB_CKS_RANGE_END        125
 #endif
-#ifndef LB_CKS_LOC
-#define LB_CKS_LOC             126
+#ifndef CONFIG_LB_CKS_LOC
+#define CONFIG_LB_CKS_LOC              126
 #endif
 
 #if !defined(ASSEMBLY)
 void rtc_init(int invalid);
-
-int get_option(char *name, unsigned int *value);
-int set_option(char *name, unsigned int value);
+#if CONFIG_USE_OPTION_TABLE == 1
+int get_option(void *dest, const char *name);
+#else
+static inline int get_option(void *dest, const char *name) { return -2; }
+#endif
 #endif
 
 #endif /*  PC80_MC146818RTC_H */