Uwe Kleine-König
d0ab4a4d50
rtc/hctosys: only claim the RTC provided the system time if it did
...
Without this patch /sys/class/rtc/$CONFIG_RTC_HCTOSYS_DEVICE/hctosys
contains a 1 (meaning "This rtc was used to initialize the system clock")
even if reading the time at bootup failed.
Moreover change error handling in rtc_hctosys() to use goto and so reduce
the indention level.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Paul Gortmaker <p_gortmaker@yahoo.com>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-03-12 15:52:28 -08:00
..
2010-03-06 11:26:47 -08:00
2010-03-12 15:52:28 -08:00
2009-10-11 11:20:58 -07:00
2010-03-07 22:17:16 +01:00
2010-03-07 22:17:16 +01:00
2009-09-17 09:47:24 +02:00
2009-12-16 07:19:58 -08:00
2009-09-23 07:39:46 -07:00
2010-03-06 11:26:47 -08:00
2009-02-11 14:25:36 -08:00
2009-09-23 07:39:45 -07:00
2009-12-16 07:20:00 -08:00
2009-12-16 07:19:58 -08:00
2010-01-11 09:34:07 -08:00
2010-03-06 11:26:48 -08:00
2009-10-11 11:20:58 -07:00
2009-02-05 12:56:46 -08:00
2009-01-06 15:59:25 -08:00
2009-12-16 07:19:58 -08:00
2009-12-17 15:45:32 -08:00
2009-12-17 15:45:32 -08:00
2009-12-17 15:45:32 -08:00
2009-09-23 07:39:43 -07:00
2009-12-16 07:19:59 -08:00
2009-12-16 07:19:59 -08:00
2009-01-06 15:59:25 -08:00
2009-12-16 07:19:59 -08:00
2009-09-23 07:39:43 -07:00
2009-04-01 08:59:24 -07:00
2010-03-06 11:26:46 -08:00
2010-02-02 18:11:21 -08:00
2009-04-02 01:05:31 +00:00
2008-12-23 15:58:21 -08:00
2009-04-01 08:59:24 -07:00
2009-04-02 19:04:51 -07:00
2009-09-23 07:39:43 -07:00
2009-12-16 07:19:58 -08:00
2009-12-16 07:19:58 -08:00
2009-09-23 07:39:43 -07:00
2010-03-07 22:17:16 +01:00
2010-03-06 11:26:47 -08:00
2010-02-16 10:47:35 -07:00
2009-12-04 21:22:34 +01:00
2009-12-16 07:19:59 -08:00
2010-03-06 11:26:46 -08:00
2009-12-16 07:20:00 -08:00
2009-12-16 07:20:00 -08:00
2009-09-23 07:39:45 -07:00
2010-03-06 11:26:47 -08:00
2009-12-16 07:19:58 -08:00
2009-12-16 07:19:58 -08:00
2009-12-16 07:19:59 -08:00
2009-06-11 15:36:56 +01:00
2010-02-04 18:06:41 +00:00
2009-03-31 01:14:44 +04:00
2009-04-02 01:05:32 +00:00
2009-12-15 08:53:25 -08:00
2009-09-23 07:39:43 -07:00
2009-12-04 21:22:35 +01:00
2009-09-23 07:39:43 -07:00
2009-06-18 13:03:43 -07:00
2009-01-06 15:59:24 -08:00
2009-12-15 08:53:25 -08:00
2009-12-15 08:53:25 -08:00
2009-12-16 07:19:59 -08:00
2009-09-23 07:39:45 -07:00
2010-03-12 15:52:28 -08:00
2009-06-19 16:46:05 -07:00
2010-03-06 11:26:47 -08:00
2009-12-16 07:19:59 -08:00
2009-12-16 07:19:58 -08:00
2009-12-16 07:20:00 -08:00
2009-12-15 08:53:25 -08:00
2010-03-07 22:16:56 +01:00
2009-12-16 07:20:00 -08:00