drm/amd/display: Fix compilation warnings on i386
authorMikita Lipski <mikita.lipski@amd.com>
Fri, 10 Jan 2020 19:31:52 +0000 (14:31 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 10 Jan 2020 21:34:20 +0000 (16:34 -0500)
commit485b747ea6ecf491bf07c69a4ea36c0ccf3c8435
tree58cb3c48bb1f0ba2a76f1ffce27caa3a9092ca7f
parent9edb435aed968a2c792f6d847f524587697edf37
drm/amd/display: Fix compilation warnings on i386

[why]
Compilation error "undefined reference to `__udivdi3'" was
thrown on i386 architecture.

[how]
Use div_u64 for unsigned long division instead of a divide operator.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c