aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/interface.c
diff options
context:
space:
mode:
authorXunlei Pang <[email protected]>2015-06-12 02:04:12 +0000
committerAlexandre Belloni <[email protected]>2015-06-24 23:13:42 +0000
commit9033fd8ba7e96821e65fe3afc3f4077a8b66d1c9 (patch)
treeae0657008e5171227c211bf488f818ba92d161f7 /drivers/rtc/interface.c
parentrtc: isl1208: Replace deprecated rtc_tm_to_time() (diff)
downloadkernel-9033fd8ba7e96821e65fe3afc3f4077a8b66d1c9.tar.gz
kernel-9033fd8ba7e96821e65fe3afc3f4077a8b66d1c9.zip
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 <[email protected]> Signed-off-by: Xunlei Pang <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'drivers/rtc/interface.c')
0 files changed, 0 insertions, 0 deletions