summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Wagantall <mattw@codeaurora.org>2012-06-26 14:50:28 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:11:46 -0700
commitabe84d082e1969592bb481be43233312b308c880 (patch)
treebaf8594cf4e48950d320c25b738b2b2d8f6f6595
parentf56e16391bf9918bd071fb4dc56b49608ec2ea4e (diff)
mdss: display: Correct regulator API usage
A device pointer should be passed to regulator_get() as the first argument, and the regulator mapped to the MDSS device in the device tree. Do this. This also resolves the following message seen in debugfs, which is present when regulator_get() is called with a NULL device: <4>[ 1.145507] gdsc_mdss: Failed to create debugfs directory Change-Id: I70a5137a31dbf82ae1e6634249f274cb16fe7a71 Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
-rw-r--r--drivers/video/fbdev/msm/mdss_mdp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/msm/mdss_mdp.c b/drivers/video/fbdev/msm/mdss_mdp.c
index 37fa2514a4f7..ce6193746c98 100644
--- a/drivers/video/fbdev/msm/mdss_mdp.c
+++ b/drivers/video/fbdev/msm/mdss_mdp.c
@@ -554,10 +554,10 @@ static int mdss_mdp_irq_clk_setup(struct platform_device *pdev)
}
disable_irq(mdss_res->irq);
- mdss_res->fs = regulator_get(NULL, "gdsc_mdss");
+ mdss_res->fs = regulator_get(&pdev->dev, "vdd");
if (IS_ERR_OR_NULL(mdss_res->fs)) {
mdss_res->fs = NULL;
- pr_err("unable to get gdsc_mdss regulator\n");
+ pr_err("unable to get gdsc regulator\n");
goto error;
}
regulator_enable(mdss_res->fs);