]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
drivers/rtc/mxc: Update driver to address y2038/y2106 issues
authorXunlei Pang <pang.xunlei@linaro.org>
Thu, 2 Apr 2015 03:34:33 +0000 (20:34 -0700)
committerIngo Molnar <mingo@kernel.org>
Fri, 3 Apr 2015 06:18:29 +0000 (08:18 +0200)
commit933623c38f014b10db564f0ec44f9db64a5ced84
tree261e97d1803cfb7614fc70d122461d95a85416e1
parenta015b8aabfd2fb58875dea001f1eac8100eacc2e
drivers/rtc/mxc: Update driver to address y2038/y2106 issues

This driver has a number of y2038/y2106 issues.

This patch resolves them by:

  - Replacing rtc_time_to_tm() with rtc_time64_to_tm()
  - Replacing rtc_tm_to_time() with rtc_tm_to_time64()
  - Changing mxc_rtc_set_mmss() to use rtc_class_ops's set_mmss64()

After this patch, the driver should not have any remaining
y2038/y2106 issues.

Signed-off-by: Xunlei Pang <pang.xunlei@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Acked-by: Alessandro Zummo <a.zummo@towertech.it>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1427945681-29972-14-git-send-email-john.stultz@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/rtc/rtc-mxc.c