From: Krzysztof Kozlowski Date: Tue, 10 Jun 2014 22:18:41 +0000 (-0700) Subject: rtc: s5m: remove undocumented time init on first boot X-Git-Tag: omap-for-v3.16/fixes-against-rc1~62^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe787a5b2297b3ef29ff04e09dcdfb58d9b690f9;p=pandora-kernel.git rtc: s5m: remove undocumented time init on first boot Remove the code for initializing time if this is first boot. The code for detecting first boot uses undocumented field RTC_TCON in RTC_UDR_CON register. According to S5M8767's datasheet this field is reserved. On S2MPS14 it is not documented at all. On device first boot the registers will be initialized with reset value (2000-01-01 00:00:00). The code might work on S5M8763 but still this does not look like a task for RTC driver. Signed-off-by: Krzysztof Kozlowski Cc: Kyungmin Park Cc: Lee Jones Cc: Alessandro Zummo Cc: Sangbeom Kim Cc: Samuel Ortiz Cc: Marek Szyprowski Cc: Bartlomiej Zolnierkiewicz Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed