Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 035be901 authored by Sachin Bhayare's avatar Sachin Bhayare Committed by Chetan C R
Browse files

msm: mdss: fix random panel power off failure in LP2 state



Return value is not initialize in mdss_dsi_panel_power_ctrl resulting in
failure of power off calls. When LP2 power state is requested and
DSI core is in power on state because uninitialized ret is returned.

Fix issue by initialize return value.

CRs-Fixed: 1055265
Change-Id: I5e9f175f4f0c97a1913a3577138ecc43b6862bc9
Signed-off-by: default avatarSachin Bhayare <sachin.bhayare@codeaurora.org>
parent 22980fb5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -406,7 +406,7 @@ static int mdss_dsi_panel_power_ulp(struct mdss_panel_data *pdata,
int mdss_dsi_panel_power_ctrl(struct mdss_panel_data *pdata,
	int power_state)
{
	int ret;
	int ret = 0;
	struct mdss_panel_info *pinfo;
	struct mdss_dsi_ctrl_pdata *ctrl_pdata = NULL;