mmc: Use lldiv() for 64-bit division in write_raw_image()
authorSiarhei Siamashka <siarhei.siamashka@gmail.com>
Wed, 28 Oct 2015 04:24:16 +0000 (06:24 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 12 Nov 2015 20:58:59 +0000 (15:58 -0500)
commit5e0efc1bc6e358efcf6cd234192a0eead21d760f
tree8582d212513685cd79f2be19a3350b7fddf97f44
parentbcb41dcaefacdd4cf0f679b34224cb3d997ee8b4
mmc: Use lldiv() for 64-bit division in write_raw_image()

This fixes compilation problems when using a hardfloat toolchain on
ARM, which manifest themselves as "libgcc.a(_udivmoddi4.o) uses
VFP register arguments, u-boot does not".

These problems have been reported in the U-Boot mailing list:
    http://lists.denx.de/pipermail/u-boot/2015-October/230314.html
    http://lists.denx.de/pipermail/u-boot/2015-October/231908.html

Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/fb_mmc.c