]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/powerplay: fix compile warning for wrong data type V2
authorEvan Quan <evan.quan@amd.com>
Wed, 5 Sep 2018 02:03:13 +0000 (10:03 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Sep 2018 03:45:05 +0000 (22:45 -0500)
commit0b9d161690e5919b806ca5f864f4c84305a7af1a
treefccce429bbe9d15b706bf35d70d487c7e2436daa
parentafef716fd2dd12c3a220eb91e2099dde576324b1
drm/amd/powerplay: fix compile warning for wrong data type V2

do_div expects the 1st argument in 64bit instead of 32bit.
Drop the usage of do_div as it seems unnecessary.

V2: drop usage of do_div completely

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c