diff options
| author | Axel Lin <axel.lin@gmail.com> | 2010-08-09 03:51:23 -0400 |
|---|---|---|
| committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2010-08-11 06:38:03 -0400 |
| commit | d7399fa88847ae93203ff5618edd97d94d36c762 (patch) | |
| tree | b2335a4663d01c3230f1302223a3569a4707310d | |
| parent | e7973c3cb352e09751afabcb0c0f9fd3032965b6 (diff) | |
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>
| -rw-r--r-- | drivers/regulator/tps6507x-regulator.c | 1 |
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) | |||
| 614 | } | 614 | } |
| 615 | 615 | ||
| 616 | tps6507x_dev->pmic = tps; | 616 | tps6507x_dev->pmic = tps; |
| 617 | platform_set_drvdata(pdev, tps6507x_dev); | ||
| 617 | 618 | ||
| 618 | return 0; | 619 | return 0; |
| 619 | 620 | ||
