if ((time_state == TIME_ERROR) || (time_state == TIME_BAD)) time_state = TIME_OK;  
gemini_set_rtc_time( unsigned long now ){	unsigned char reg;	struct rtc_time tm;	to_tm( now, &tm );	reg = gemini_rtc_read(M48T35_RTC_CONTROL);#ifdef DEBUG_RTC	printk("set rtc: reg = %x\n", reg);#endif	gemini_rtc_write((reg|M48T35_RTC_SET), M48T35_RTC_CONTROL);#ifdef DEBUG_RTC	printk("set rtc: tm vals - sec=%x, min=%x, hour=%x, mon=%x, mday=%x, year=%x\n",	       tm.tm_sec, tm.tm_min, tm.tm_hour, tm.tm_mon, tm.tm_mday, tm.tm_year);#endif	tm.tm_year -= 1900;	BIN_TO_BCD(tm.tm_sec);	BIN_TO_BCD(tm.tm_min);	BIN_TO_BCD(tm.tm_hour);	BIN_TO_BCD(tm.tm_mon);	BIN_TO_BCD(tm.tm_mday);	BIN_TO_BCD(tm.tm_year);#ifdef DEBUG_RTC	printk("set rtc: tm vals - sec=%x, min=%x, hour=%x, mon=%x, mday=%x, year=%x\n",	       tm.tm_sec, tm.tm_min, tm.tm_hour, tm.tm_mon, tm.tm_mday, tm.tm_year);#endif	gemini_rtc_write(tm.tm_sec, M48T35_RTC_SECONDS);	gemini_rtc_write(tm.tm_min, M48T35_RTC_MINUTES);	gemini_rtc_write(tm.tm_hour, M48T35_RTC_HOURS);	gemini_rtc_write(tm.tm_mday, M48T35_RTC_DOM);	gemini_rtc_write(tm.tm_mon, M48T35_RTC_MONTH);	gemini_rtc_write(tm.tm_year, M48T35_RTC_YEAR);	/* done writing */	gemini_rtc_write(reg, M48T35_RTC_CONTROL);	if ((time_state == TIME_ERROR) || (time_state == TIME_BAD))		time_state = TIME_OK;	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/54095a6ec7b11a008c07c5016b025206a051f560/gemini_setup.c/buggy/arch/ppc/platforms/gemini_setup.c