exynos: Correct use of 64-bit division
authorSimon Glass <sjg@chromium.org>
Sat, 13 Apr 2013 04:26:41 +0000 (04:26 +0000)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 17 Apr 2013 01:00:40 +0000 (10:00 +0900)
commitdc47e2bc7d1c5307b18b9a43f3286969e36a974e
tree51ee99dbcc2fa11119649acea7035dfa7e61a863
parent70656c79f3c85df77b65cda0237f5454851186ca
exynos: Correct use of 64-bit division

The current code is causing errors like this on my toolchains:

/usr/x86_64-pc-linux-gnu/armv7a-cros-linux-gnueabi/binutils-bin/2.22/
ld.bfd.real: failed to merge target specific data of file /usr/lib/gcc/
armv7a-cros-linux-gnueabi/4.7.x-google/libgcc.a(_divdi3.o)

Use do_div() to avoid this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
arch/arm/cpu/armv7/s5p-common/timer.c