/* Return the current time and date from the RTC @dev RTC device @tm Gregorian time and date  */
static int kinetis_rtc_read_time(struct device *dev, struct rtc_time *tm)
/* Return the current time and date from the RTC @dev RTC device @tm Gregorian time and date  */
static int kinetis_rtc_read_time(struct device *dev, struct rtc_time *tm)
{
	struct kinetis_rtc *rtc = dev_get_drvdata(dev);
	long unsigned int secs;
	int ret = 0;
	spin_lock_irq(&rtc->lock);
	secs = readl(&KINETIS_RTC(rtc)->rtc_tsr); 
	rtc_time_to_tm(secs, tm);
	spin_unlock_irq(&rtc->lock);
	d_printk(2, "secs=%ld,ret=%d\n", secs, ret);
	return ret;
}