diff options
-rw-r--r-- | drivers/regulator/tps6586x-regulator.c | 5 |
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 | ||
365 | static int __devexit tps6586x_regulator_remove(struct platform_device *pdev) | 365 | static 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 | ||