summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps6105x-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-03-29 17:54:58 +0800
committerLiam Girdwood <lrg@slimlogic.co.uk>2011-05-27 10:34:36 +0100
commitf0f060bdd55e36adff4cc80b2a4ed026774db7a9 (patch)
tree6a2d546d7ac2c22c029c0ef49c563d0df6f088c6 /drivers/regulator/tps6105x-regulator.c
parent2c6082341d1896218ca974cc2bb6876e36fcba5c (diff)
downloadlinux-f0f060bdd55e36adff4cc80b2a4ed026774db7a9.tar.gz
linux-f0f060bdd55e36adff4cc80b2a4ed026774db7a9.tar.bz2
linux-f0f060bdd55e36adff4cc80b2a4ed026774db7a9.zip
regulator: Add missing platform_set_drvdata in tps6105x_regulator_probe
Otherwise, calling platform_get_drvdata in tps6105x_regulator_remove returns NULL. 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/tps6105x-regulator.c')
-rw-r--r--drivers/regulator/tps6105x-regulator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/tps6105x-regulator.c b/drivers/regulator/tps6105x-regulator.c
index a4d7f4540c18..1011873896dc 100644
--- a/drivers/regulator/tps6105x-regulator.c
+++ b/drivers/regulator/tps6105x-regulator.c
@@ -158,6 +158,7 @@ static int __devinit tps6105x_regulator_probe(struct platform_device *pdev)
"failed to register regulator\n");
return ret;
}
+ platform_set_drvdata(pdev, tps6105x);
return 0;
}