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

Commit 2d1e57b9 authored by Sandeep Panda's avatar Sandeep Panda Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: do not fail probe if backlight control not defined



Panels like AMOLED and dsi2hdmi bridge chip does not need
backlight control specified by DSI host. So no need to
fail dsi probe if backlight control is not defined.

Change-Id: I6e192b2e354d6e9146fb0890d2918feab9c7a2ed
Signed-off-by: default avatarSandeep Panda <spanda@codeaurora.org>
parent da9777c8
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -2558,8 +2558,12 @@ static int mdss_dsi_ctrl_probe(struct platform_device *pdev)
		(ctrl_pdata->panel_data.panel_info.pdest == DISPLAY_1))) {
		rc = mdss_panel_parse_bl_settings(dsi_pan_node, ctrl_pdata);
		if (rc) {
			pr_err("%s: dsi bl settings parse failed\n", __func__);
			goto error_pan_node;
			pr_warn("%s: dsi bl settings parse failed\n", __func__);
			/* Panels like AMOLED and dsi2hdmi chip
			 * does not need backlight control.
			 * So we should not fail probe here.
			 */
			ctrl_pdata->bklt_ctrl = UNKNOWN_CTRL;
		}
	} else {
		ctrl_pdata->bklt_ctrl = UNKNOWN_CTRL;