From: Ondrej Jirman Date: Mon, 22 May 2023 21:47:05 +0000 (+0200) Subject: video: rockchip: dw_mipi_dsi: Return 0 from dsi_phy_init on success X-Git-Tag: v2025.01-rc5-pxa1908~939^2~3 X-Git-Url: http://git.dujemihanovic.xyz/img/%22http:/www.sics.se/static/static/gitweb.css?a=commitdiff_plain;h=4158d7f9879fce29ec46a565382135083b030ed8;p=u-boot.git video: rockchip: dw_mipi_dsi: Return 0 from dsi_phy_init on success ret is undefined if external phy is not used resulting in bogus error being returned in that scenario. Signed-off-by: Ondrej Jirman --- diff --git a/drivers/video/rockchip/dw_mipi_dsi_rockchip.c b/drivers/video/rockchip/dw_mipi_dsi_rockchip.c index b7d6b51703..5e8db6bd2e 100644 --- a/drivers/video/rockchip/dw_mipi_dsi_rockchip.c +++ b/drivers/video/rockchip/dw_mipi_dsi_rockchip.c @@ -460,7 +460,7 @@ static int dsi_phy_init(void *priv_data) dw_mipi_dsi_phy_write(dsi, HS_TX_DATA_LANE_EXIT_STATE_TIME_CONTROL, BIT(5) | ns2bc(dsi, 100)); - return ret; + return 0; } static void dsi_phy_post_set_mode(void *priv_data, unsigned long mode_flags)