From 21f3c7dd23f1290d46fee7a35772ea50d25c6475 Mon Sep 17 00:00:00 2001 From: Dhaval Patel Date: Mon, 13 Apr 2015 17:07:25 -0700 Subject: [PATCH] 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 --- drivers/video/fbdev/msm/mdss_mdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/msm/mdss_mdp.c b/drivers/video/fbdev/msm/mdss_mdp.c index 8fc79df067a3..dd749bcf9e5f 100644 --- a/drivers/video/fbdev/msm/mdss_mdp.c +++ b/drivers/video/fbdev/msm/mdss_mdp.c @@ -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",