From: wdenk Date: Tue, 23 Oct 2001 20:57:30 +0000 (+0000) Subject: Remove board dependend test code. X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=21a3b2bd81a96eea4251d75f3a14f4286fe5c23a;p=users%2Frw%2Fppcboot.git Remove board dependend test code. Patch by Erik Theisen, 23 Oct 2001 --- diff --git a/rtc/m48t35ax.c b/rtc/m48t35ax.c index 9fd9041..a487cce 100644 --- a/rtc/m48t35ax.c +++ b/rtc/m48t35ax.c @@ -32,7 +32,6 @@ #include #include #include -#include "error.h" #if defined(CONFIG_RTC_M48T35A) && (CONFIG_COMMANDS & CFG_CMD_DATE) @@ -164,32 +163,4 @@ static unsigned char bin2bcd (unsigned int n) return (((n / 10) << 4) | (n % 10)); } -#if 0 -int rtctest(void){ - struct rtc_time *tmp; - uchar tchar; - - log_stat(ERR_RTCG); - *(unsigned char *)(CFG_NVRAM_BASE_ADDR + CFG_NVRAM_SIZE - 9) = 0xaa; - tchar = *(unsigned char *)(CFG_NVRAM_BASE_ADDR + CFG_NVRAM_SIZE - 9); - tchar = tchar ^ 0xaa; - if( tchar != 0xaa ) log_warn(ERR_RTCBAT); - rtc_get(tmp); - if((tmp->tm_sec > 59) | - (tmp->tm_min > 59) | - (tmp->tm_hour > 23) | - (tmp->tm_mday < 1 ) | (tmp->tm_mday > 31) | - (tmp->tm_mon < 1 ) | (tmp->tm_mon > 12) | - (tmp->tm_year > 99) | - (tmp->tm_wday < 1 ) | (tmp->tm_wday > 7 ) | - (tmp->tm_wday < 1 ) | (tmp->tm_wday > 7 ) ) - { - log_warn(ERR_RTCVAL); - rtc_reset(); - return 0; - } - return 1; -} -#endif - #endif /* CONFIG_RTC_M48T35A && CFG_CMD_DATE */