summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps6507x-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-08-09 15:51:23 +0800
committerLiam Girdwood <lrg@slimlogic.co.uk>2010-08-11 11:38:03 +0100
commitd7399fa88847ae93203ff5618edd97d94d36c762 (patch)
treeb2335a4663d01c3230f1302223a3569a4707310d /drivers/regulator/tps6507x-regulator.c
parente7973c3cb352e09751afabcb0c0f9fd3032965b6 (diff)
downloadlinux-stable-d7399fa88847ae93203ff5618edd97d94d36c762.tar.gz
linux-stable-d7399fa88847ae93203ff5618edd97d94d36c762.tar.bz2
linux-stable-d7399fa88847ae93203ff5618edd97d94d36c762.zip
regulator: tps6507x - add missing platform_set_drvdata in tps6507x_pmic_probe
We should call platform_set_drvdata() before calling platform_get_drvdata(). Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/regulator/tps6507x-regulator.c')
-rw-r--r--drivers/regulator/tps6507x-regulator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/tps6507x-regulator.c b/drivers/regulator/tps6507x-regulator.c
index 8152d65220f5..c239f42aa4a3 100644
--- a/drivers/regulator/tps6507x-regulator.c
+++ b/drivers/regulator/tps6507x-regulator.c
@@ -614,6 +614,7 @@ int tps6507x_pmic_probe(struct platform_device *pdev)
}
tps6507x_dev->pmic = tps;
+ platform_set_drvdata(pdev, tps6507x_dev);
return 0;