msm: mdss: handle fbc prefill as optional property

FBC lines prefill is option property but MDSS driver probe
returns failure if this property is not defined. This change
handles it as optional property.

Change-Id: I8d1813fbbc2f5aef9bf81535e1640c9c25c8a784
Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
This commit is contained in:
Dhaval Patel 2014-10-14 16:29:19 -07:00 committed by David Keitel
parent b99a1ae573
commit 3237117000

View file

@ -2471,10 +2471,8 @@ static int mdss_mdp_parse_dt_prefill(struct platform_device *pdev)
rc = of_property_read_u32(pdev->dev.of_node,
"qcom,mdss-prefill-fbc-lines", &prefill->fbc_lines);
if (rc) {
pr_err("prefill FBC lines not specified\n");
return rc;
}
if (rc)
pr_debug("prefill FBC lines not specified\n");
return 0;
}