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)
downloadop-kernel-dev-d7399fa88847ae93203ff5618edd97d94d36c762.zip
op-kernel-dev-d7399fa88847ae93203ff5618edd97d94d36c762.tar.gz
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 8152d65..c239f42 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;
OpenPOWER on IntegriCloud