diff options
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2015-05-14 22:39:06 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2015-06-25 01:13:36 +0200 |
commit | 9393996761e23280f259d706133c8f0cd139fd58 (patch) | |
tree | dd7ed7e35fe64cd5b51222b67e3750c14a8a307a /drivers/rtc/rtc-rv3029c2.c | |
parent | 99c14e4df6144bca12dcac657266a7b8216aaa16 (diff) | |
download | blackbird-obmc-linux-9393996761e23280f259d706133c8f0cd139fd58.tar.gz blackbird-obmc-linux-9393996761e23280f259d706133c8f0cd139fd58.zip |
rtc: mt6397: fix build on some 32bits platforms
On some !ARM 32bits platforms, the following compilation error happens
because of the division on a 64bits value in mtk_rtc_read_time():
drivers/built-in.o: In function `mtk_rtc_read_time':
rtc-mt6397.c:(.text+0x265d13f): undefined reference to `__divdi3'
rtc-mt6397.c:(.text+0x265d150): undefined reference to `__moddi3'
Use div_s64() as done in rtc_time64_to_tm() to solve that.
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Acked-by: Eddie Huang <eddie.huang@mediatek.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-rv3029c2.c')
0 files changed, 0 insertions, 0 deletions