drm: mali-dp: use div_u64 for expensive 64-bit divisions
authorArnd Bergmann <arnd@arndb.de>
Tue, 25 Apr 2017 19:56:53 +0000 (21:56 +0200)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Wed, 26 Apr 2017 16:54:58 +0000 (17:54 +0100)
commit763656d30b3d220a52e4b2bd1fc174a4cd6c0f43
treeea546747872e054429aab11defc21a0987ccd898
parentc2e7f82d336a451ebb904b8bf9a5a558cf16c39b
drm: mali-dp: use div_u64 for expensive 64-bit divisions

On 32-bit machines, we can't divide 64-bit integers:

drivers/gpu/drm/arm/malidp_crtc.o: In function `malidp_crtc_atomic_check':
malidp_crtc.c:(.text.malidp_crtc_atomic_check+0x3c0): undefined reference to `__aeabi_uldivmod'
malidp_crtc.c:(.text.malidp_crtc_atomic_check+0x3dc): undefined reference to `__aeabi_uldivmod'

This calls the div_u64 function explicitly instead.

Fixes: 4cea4e9f6690 ("drm: mali-dp: Add plane upscaling support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/gpu/drm/arm/malidp_crtc.c