diff options
Diffstat (limited to 'drivers/regulator/wm831x-dcdc.c')
| -rw-r--r-- | drivers/regulator/wm831x-dcdc.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/regulator/wm831x-dcdc.c b/drivers/regulator/wm831x-dcdc.c index 0a6577577e8d..6e18e56d850b 100644 --- a/drivers/regulator/wm831x-dcdc.c +++ b/drivers/regulator/wm831x-dcdc.c | |||
| @@ -600,6 +600,8 @@ static __devexit int wm831x_buckv_remove(struct platform_device *pdev) | |||
| 600 | struct wm831x_dcdc *dcdc = platform_get_drvdata(pdev); | 600 | struct wm831x_dcdc *dcdc = platform_get_drvdata(pdev); |
| 601 | struct wm831x *wm831x = dcdc->wm831x; | 601 | struct wm831x *wm831x = dcdc->wm831x; |
| 602 | 602 | ||
| 603 | platform_set_drvdata(pdev, NULL); | ||
| 604 | |||
| 603 | wm831x_free_irq(wm831x, platform_get_irq_byname(pdev, "HC"), dcdc); | 605 | wm831x_free_irq(wm831x, platform_get_irq_byname(pdev, "HC"), dcdc); |
| 604 | wm831x_free_irq(wm831x, platform_get_irq_byname(pdev, "UV"), dcdc); | 606 | wm831x_free_irq(wm831x, platform_get_irq_byname(pdev, "UV"), dcdc); |
| 605 | regulator_unregister(dcdc->regulator); | 607 | regulator_unregister(dcdc->regulator); |
| @@ -615,6 +617,7 @@ static struct platform_driver wm831x_buckv_driver = { | |||
| 615 | .remove = __devexit_p(wm831x_buckv_remove), | 617 | .remove = __devexit_p(wm831x_buckv_remove), |
| 616 | .driver = { | 618 | .driver = { |
| 617 | .name = "wm831x-buckv", | 619 | .name = "wm831x-buckv", |
| 620 | .owner = THIS_MODULE, | ||
| 618 | }, | 621 | }, |
| 619 | }; | 622 | }; |
| 620 | 623 | ||
| @@ -769,6 +772,8 @@ static __devexit int wm831x_buckp_remove(struct platform_device *pdev) | |||
| 769 | struct wm831x_dcdc *dcdc = platform_get_drvdata(pdev); | 772 | struct wm831x_dcdc *dcdc = platform_get_drvdata(pdev); |
| 770 | struct wm831x *wm831x = dcdc->wm831x; | 773 | struct wm831x *wm831x = dcdc->wm831x; |
| 771 | 774 | ||
| 775 | platform_set_drvdata(pdev, NULL); | ||
| 776 | |||
| 772 | wm831x_free_irq(wm831x, platform_get_irq_byname(pdev, "UV"), dcdc); | 777 | wm831x_free_irq(wm831x, platform_get_irq_byname(pdev, "UV"), dcdc); |
| 773 | regulator_unregister(dcdc->regulator); | 778 | regulator_unregister(dcdc->regulator); |
| 774 | kfree(dcdc); | 779 | kfree(dcdc); |
| @@ -781,6 +786,7 @@ static struct platform_driver wm831x_buckp_driver = { | |||
| 781 | .remove = __devexit_p(wm831x_buckp_remove), | 786 | .remove = __devexit_p(wm831x_buckp_remove), |
| 782 | .driver = { | 787 | .driver = { |
| 783 | .name = "wm831x-buckp", | 788 | .name = "wm831x-buckp", |
| 789 | .owner = THIS_MODULE, | ||
| 784 | }, | 790 | }, |
| 785 | }; | 791 | }; |
| 786 | 792 | ||
| @@ -895,6 +901,8 @@ static __devexit int wm831x_boostp_remove(struct platform_device *pdev) | |||
| 895 | struct wm831x_dcdc *dcdc = platform_get_drvdata(pdev); | 901 | struct wm831x_dcdc *dcdc = platform_get_drvdata(pdev); |
| 896 | struct wm831x *wm831x = dcdc->wm831x; | 902 | struct wm831x *wm831x = dcdc->wm831x; |
| 897 | 903 | ||
| 904 | platform_set_drvdata(pdev, NULL); | ||
| 905 | |||
| 898 | wm831x_free_irq(wm831x, platform_get_irq_byname(pdev, "UV"), dcdc); | 906 | wm831x_free_irq(wm831x, platform_get_irq_byname(pdev, "UV"), dcdc); |
| 899 | regulator_unregister(dcdc->regulator); | 907 | regulator_unregister(dcdc->regulator); |
| 900 | kfree(dcdc); | 908 | kfree(dcdc); |
| @@ -907,6 +915,7 @@ static struct platform_driver wm831x_boostp_driver = { | |||
| 907 | .remove = __devexit_p(wm831x_boostp_remove), | 915 | .remove = __devexit_p(wm831x_boostp_remove), |
| 908 | .driver = { | 916 | .driver = { |
| 909 | .name = "wm831x-boostp", | 917 | .name = "wm831x-boostp", |
| 918 | .owner = THIS_MODULE, | ||
| 910 | }, | 919 | }, |
| 911 | }; | 920 | }; |
| 912 | 921 | ||
| @@ -979,6 +988,8 @@ static __devexit int wm831x_epe_remove(struct platform_device *pdev) | |||
| 979 | { | 988 | { |
| 980 | struct wm831x_dcdc *dcdc = platform_get_drvdata(pdev); | 989 | struct wm831x_dcdc *dcdc = platform_get_drvdata(pdev); |
| 981 | 990 | ||
| 991 | platform_set_drvdata(pdev, NULL); | ||
| 992 | |||
| 982 | regulator_unregister(dcdc->regulator); | 993 | regulator_unregister(dcdc->regulator); |
| 983 | kfree(dcdc); | 994 | kfree(dcdc); |
| 984 | 995 | ||
| @@ -990,6 +1001,7 @@ static struct platform_driver wm831x_epe_driver = { | |||
| 990 | .remove = __devexit_p(wm831x_epe_remove), | 1001 | .remove = __devexit_p(wm831x_epe_remove), |
| 991 | .driver = { | 1002 | .driver = { |
| 992 | .name = "wm831x-epe", | 1003 | .name = "wm831x-epe", |
| 1004 | .owner = THIS_MODULE, | ||
| 993 | }, | 1005 | }, |
| 994 | }; | 1006 | }; |
| 995 | 1007 | ||
