msm: mdss: use regulator get optional API for optional reg
"vdd-cx" is optional regulator and usage of incorrect API returns the dummy regulator. Display driver tries to enable/disable this regulator on each suspend/resume and prints error based on return value. This change uses correct API for optional regulator to avoid unnecessary error messages on each suspend/resume. Change-Id: I51df98fd32702e4de83c5ecc5311f176f82818e1 Signed-off-by: Dhaval Patel <pdhaval@codeaurora.org>
This commit is contained in:
parent
3e28d13595
commit
21f3c7dd23
1 changed files with 1 additions and 1 deletions
|
@ -956,7 +956,7 @@ static int mdss_mdp_irq_clk_setup(struct mdss_data_type *mdata)
|
|||
else
|
||||
mdata->regulator_notif_register = true;
|
||||
|
||||
mdata->vdd_cx = devm_regulator_get(&mdata->pdev->dev,
|
||||
mdata->vdd_cx = devm_regulator_get_optional(&mdata->pdev->dev,
|
||||
"vdd-cx");
|
||||
if (IS_ERR_OR_NULL(mdata->vdd_cx)) {
|
||||
pr_debug("unable to get CX reg. rc=%d\n",
|
||||
|
|
Loading…
Add table
Reference in a new issue