From: Uwe Kleine-König Date: Wed, 10 Mar 2010 23:20:35 +0000 (-0800) Subject: rtc/hctosys: only claim the RTC provided the system time if it did X-Git-Tag: v2.6.34-rc2~274 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0ab4a4d5094e5d17b103dc5073529a04f00a469;p=pandora-kernel.git 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 Cc: Paul Gortmaker Acked-by: Alessandro Zummo Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed