aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/wm831x-ldo.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/regulator/wm831x-ldo.c')
-rw-r--r--drivers/regulator/wm831x-ldo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/regulator/wm831x-ldo.c b/drivers/regulator/wm831x-ldo.c
index 61e02ac2fda3..d2406c1519a1 100644
--- a/drivers/regulator/wm831x-ldo.c
+++ b/drivers/regulator/wm831x-ldo.c
@@ -371,6 +371,8 @@ static __devexit int wm831x_gp_ldo_remove(struct platform_device *pdev)
371 struct wm831x_ldo *ldo = platform_get_drvdata(pdev); 371 struct wm831x_ldo *ldo = platform_get_drvdata(pdev);
372 struct wm831x *wm831x = ldo->wm831x; 372 struct wm831x *wm831x = ldo->wm831x;
373 373
374 platform_set_drvdata(pdev, NULL);
375
374 wm831x_free_irq(wm831x, platform_get_irq_byname(pdev, "UV"), ldo); 376 wm831x_free_irq(wm831x, platform_get_irq_byname(pdev, "UV"), ldo);
375 regulator_unregister(ldo->regulator); 377 regulator_unregister(ldo->regulator);
376 kfree(ldo); 378 kfree(ldo);
@@ -383,6 +385,7 @@ static struct platform_driver wm831x_gp_ldo_driver = {
383 .remove = __devexit_p(wm831x_gp_ldo_remove), 385 .remove = __devexit_p(wm831x_gp_ldo_remove),
384 .driver = { 386 .driver = {
385 .name = "wm831x-ldo", 387 .name = "wm831x-ldo",
388 .owner = THIS_MODULE,
386 }, 389 },
387}; 390};
388 391
@@ -640,6 +643,7 @@ static struct platform_driver wm831x_aldo_driver = {
640 .remove = __devexit_p(wm831x_aldo_remove), 643 .remove = __devexit_p(wm831x_aldo_remove),
641 .driver = { 644 .driver = {
642 .name = "wm831x-aldo", 645 .name = "wm831x-aldo",
646 .owner = THIS_MODULE,
643 }, 647 },
644}; 648};
645 649
@@ -811,6 +815,7 @@ static struct platform_driver wm831x_alive_ldo_driver = {
811 .remove = __devexit_p(wm831x_alive_ldo_remove), 815 .remove = __devexit_p(wm831x_alive_ldo_remove),
812 .driver = { 816 .driver = {
813 .name = "wm831x-alive-ldo", 817 .name = "wm831x-alive-ldo",
818 .owner = THIS_MODULE,
814 }, 819 },
815}; 820};
816 821