ret = rtc_tm_to_time(&alrm->time, &time);
ret = rtc_valid_tm(&alrm->time); if (ret == 0) ret = rtc_tm_to_time(&alrm->time, &time);
static int rtc_set_alarm(struct rtc_wkalrm *alrm){	unsigned long time;	int ret;	ret = rtc_tm_to_time(&alrm->time, &time);	if (ret == 0)		writel(time, rtc_base + RTC_MR);	return ret;}