rtc-sh.c (36d99df2fb474222ab47fbe8ae7385661033223b) rtc-sh.c (2a4e2b8780c6df42b19c053243dada7fa4d311ee)
1/*
2 * SuperH On-Chip RTC Support
3 *
4 * Copyright (C) 2006, 2007, 2008 Paul Mundt
5 * Copyright (C) 2006 Jamie Lenehan
6 * Copyright (C) 2008 Angelo Castello
7 *
8 * Based on the old arch/sh/kernel/cpu/rtc.c by:

--- 347 unchanged lines hidden (view full) ---

356
357#if RTC_BIT_INVERTED != 0
358 if ((sec128 & RTC_BIT_INVERTED))
359 tm->tm_sec--;
360#endif
361
362 dev_dbg(dev, "%s: tm is secs=%d, mins=%d, hours=%d, "
363 "mday=%d, mon=%d, year=%d, wday=%d\n",
1/*
2 * SuperH On-Chip RTC Support
3 *
4 * Copyright (C) 2006, 2007, 2008 Paul Mundt
5 * Copyright (C) 2006 Jamie Lenehan
6 * Copyright (C) 2008 Angelo Castello
7 *
8 * Based on the old arch/sh/kernel/cpu/rtc.c by:

--- 347 unchanged lines hidden (view full) ---

356
357#if RTC_BIT_INVERTED != 0
358 if ((sec128 & RTC_BIT_INVERTED))
359 tm->tm_sec--;
360#endif
361
362 dev_dbg(dev, "%s: tm is secs=%d, mins=%d, hours=%d, "
363 "mday=%d, mon=%d, year=%d, wday=%d\n",
364 __FUNCTION__,
364 __func__,
365 tm->tm_sec, tm->tm_min, tm->tm_hour,
366 tm->tm_mday, tm->tm_mon + 1, tm->tm_year, tm->tm_wday);
367
368 if (rtc_valid_tm(tm) < 0) {
369 dev_err(dev, "invalid date\n");
370 rtc_time_to_tm(0, tm);
371 }
372

--- 373 unchanged lines hidden ---
365 tm->tm_sec, tm->tm_min, tm->tm_hour,
366 tm->tm_mday, tm->tm_mon + 1, tm->tm_year, tm->tm_wday);
367
368 if (rtc_valid_tm(tm) < 0) {
369 dev_err(dev, "invalid date\n");
370 rtc_time_to_tm(0, tm);
371 }
372

--- 373 unchanged lines hidden ---