aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps6105x-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-03-29 05:54:58 -0400
committerLiam Girdwood <lrg@slimlogic.co.uk>2011-05-27 05:34:36 -0400
commitf0f060bdd55e36adff4cc80b2a4ed026774db7a9 (patch)
tree6a2d546d7ac2c22c029c0ef49c563d0df6f088c6 /drivers/regulator/tps6105x-regulator.c
parent2c6082341d1896218ca974cc2bb6876e36fcba5c (diff)
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)
158 "failed to register regulator\n"); 158 "failed to register regulator\n");
159 return ret; 159 return ret;
160 } 160 }
161 platform_set_drvdata(pdev, tps6105x);
161 162
162 return 0; 163 return 0;
163} 164}