Alexandre Belloni 9393996761 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>
2015-06-25 01:13:36 +02:00
..
2015-06-01 17:03:44 +02:00
2015-05-23 12:30:52 +01:00
2015-05-05 08:42:06 -07:00
2015-04-22 09:18:17 -07:00
2015-04-21 09:42:58 -07:00
2015-05-18 10:01:54 -07:00
2015-04-07 12:05:12 +02:00
2015-06-06 22:37:45 -07:00
2015-04-22 09:04:39 -07:00
2015-03-31 12:01:19 -04:00
2015-05-31 11:54:25 +09:00
2015-06-06 22:14:23 -07:00
2015-06-05 23:19:45 +09:00