drm/rockchip: avoid 64-bit division
authorArnd Bergmann <arnd@arndb.de>
Fri, 18 Oct 2024 15:10:10 +0000 (15:10 +0000)
committerLiviu Dudau <liviu.dudau@arm.com>
Tue, 19 Nov 2024 14:26:50 +0000 (14:26 +0000)
commit4b64b4a81fcd51f570c046cf904aef19ec756d45
tree802ca012bb73d5283a48ded994958f2571094302
parent0811cc0baf368a94dc1d2f5900dfb7765d6a7661
drm/rockchip: avoid 64-bit division

Dividing a 64-bit integer prevents building this for 32-bit targets:

ERROR: modpost: "__aeabi_uldivmod" [drivers/gpu/drm/rockchip/rockchipdrm.ko] undefined!

As this function is not performance criticial, just Use the div_u64() helper.

Fixes: 128a9bf8ace2 ("drm/rockchip: Add basic RK3588 HDMI output support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20241018151016.3496613-1-arnd@kernel.org
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c