From: Xunlei Pang Date: Fri, 12 Jun 2015 02:04:12 +0000 (+0800) Subject: rtc: sunxi: Replace deprecated rtc_tm_to_time() X-Git-Tag: omap-for-v4.3/legacy-v2-signed~136^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9033fd8ba7e96821e65fe3afc3f4077a8b66d1c9;p=pandora-kernel.git rtc: sunxi: Replace deprecated rtc_tm_to_time() sunxi_rtc_setalarm() uses deprecated rtc_tm_to_time(), which will overflow in year 2106 on 32-bit machines. This patch solves this by: - Replacing rtc_tm_to_time() with rtc_tm_sub() Also remove the unnecessary initial zeroing of some local variables in sunxi_rtc_setalarm(). Cc: Carlo Caione Signed-off-by: Xunlei Pang Signed-off-by: Alexandre Belloni --- Reading git-diff-tree failed