aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps6586x-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-08-09 03:58:06 -0400
committerLiam Girdwood <lrg@slimlogic.co.uk>2010-08-11 06:38:03 -0400
commite7973c3cb352e09751afabcb0c0f9fd3032965b6 (patch)
treeac790c69114f28ac80aee46ef1aa0ccd1d463284 /drivers/regulator/tps6586x-regulator.c
parent8f1f151ed8ae4063837221cc9f5386a7af59f4e0 (diff)
regulator: tps6586x - add regulator_unregister() in tps6586x_regulator_remove()
Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Mike Rapoport <mike@compulab.co.il> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/regulator/tps6586x-regulator.c')
-rw-r--r--drivers/regulator/tps6586x-regulator.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/regulator/tps6586x-regulator.c b/drivers/regulator/tps6586x-regulator.c
index 3c2eee8e7563..122193b5e269 100644
--- a/drivers/regulator/tps6586x-regulator.c
+++ b/drivers/regulator/tps6586x-regulator.c
@@ -357,13 +357,16 @@ static int __devinit tps6586x_regulator_probe(struct platform_device *pdev)
357 return PTR_ERR(rdev); 357 return PTR_ERR(rdev);
358 } 358 }
359 359
360 platform_set_drvdata(pdev, ri); 360 platform_set_drvdata(pdev, rdev);
361 361
362 return 0; 362 return 0;
363} 363}
364 364
365static int __devexit tps6586x_regulator_remove(struct platform_device *pdev) 365static int __devexit tps6586x_regulator_remove(struct platform_device *pdev)
366{ 366{
367 struct regulator_dev *rdev = platform_get_drvdata(pdev);
368
369 regulator_unregister(rdev);
367 return 0; 370 return 0;
368} 371}
369 372