Skip to content
Snippets Groups Projects
Commit 8e294be9 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Treehugger Robot
Browse files

UPSTREAM: 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: 128a9bf8 ("drm/rockchip: Add basic RK3588 HDMI output support")
Change-Id: Idcf485858b61e6188a6f86c5f9fe7994111ee518
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20241018151016.3496613-1-arnd@kernel.org


Signed-off-by: default avatarLiviu Dudau <liviu.dudau@arm.com>
(cherry picked from commit 4b64b4a8)
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 09c164d0
No related merge requests found
......@@ -82,7 +82,7 @@ static void dw_hdmi_qp_rockchip_encoder_enable(struct drm_encoder *encoder)
* comment in rk_hdptx_phy_power_on() from
* drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
*/
phy_set_bus_width(hdmi->phy, rate / 100);
phy_set_bus_width(hdmi->phy, div_u64(rate, 100));
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment