drm/amd/display: Fix 64-bit division for 32-bit builds
authorKen Chalmers <ken.chalmers@amd.com>
Wed, 19 Dec 2018 19:50:20 +0000 (14:50 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:04:45 +0000 (15:04 -0500)
commit32e61361b82e7ad016a83345f66ccc68865f63f4
tree6e0dee55953f51af01b351c32a908edefab48737
parent785fd44c251c08c1490e20daec604f0f924dd7fc
drm/amd/display: Fix 64-bit division for 32-bit builds

[Why]
32-bit builds break when doing 64-bit division directly.

[How]
Use the div_u64() function instead to perform the division.

Fixes: https://lists.freedesktop.org/archives/dri-devel/2018-December/201008.html
Signed-off-by: Ken Chalmers <ken.chalmers@amd.com>
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce80/dce80_timing_generator.c