/* This function sets the internal RTC time based on tm in Gregorian date.  */
static int mxc_rtc_set_mmss(struct device *dev, unsigned long time)
/* This function sets the internal RTC time based on tm in Gregorian date.  */
static int mxc_rtc_set_mmss(struct device *dev, unsigned long time)
{
	do {
		set_alarm_or_time(dev, MXC_RTC_TIME, time);
	} while (time != get_alarm_or_time(dev, MXC_RTC_TIME));
	return 0;
}