diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-03-29 09:54:58 (GMT) |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2011-05-27 09:34:36 (GMT) |
commit | f0f060bdd55e36adff4cc80b2a4ed026774db7a9 (patch) | |
tree | 6a2d546d7ac2c22c029c0ef49c563d0df6f088c6 /drivers | |
parent | 2c6082341d1896218ca974cc2bb6876e36fcba5c (diff) | |
download | linux-f0f060bdd55e36adff4cc80b2a4ed026774db7a9.tar.xz |
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')
-rw-r--r-- | drivers/regulator/tps6105x-regulator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/tps6105x-regulator.c b/drivers/regulator/tps6105x-regulator.c index a4d7f45..1011873 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; } |