Skip to content
Commit 93939967 authored by Alexandre Belloni's avatar Alexandre Belloni
Browse files

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: default avatarkbuild test robot <fengguang.wu@intel.com>
Acked-by: default avatarEddie Huang <eddie.huang@mediatek.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent 99c14e4d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment