aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2008-10-10 10:58:15 -0400
committerLiam Girdwood <lrg@slimlogic.co.uk>2008-10-13 16:51:56 -0400
commitda09155ac8d3f04c299b3d82a6ab0df8d03da632 (patch)
treed6a74be9aa350179d51f5a0ffbcbf06c37a11d37 /drivers/mfd
parentebccec0fa4e35dff0c18663a492a65f4dc6cad7a (diff)
regulator: Add WM8350 regulator support
The WM8350 features six DCDC convertors (four buck and two boost), four LDO voltage regulators and two constant current sinks. This driver adds support for these through the regulator API. This driver was written by Liam Girdwood with updates for submission from Mark Brown. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/wm8350-core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/mfd/wm8350-core.c b/drivers/mfd/wm8350-core.c
index e74829f298b9..9a1a0b2b581e 100644
--- a/drivers/mfd/wm8350-core.c
+++ b/drivers/mfd/wm8350-core.c
@@ -1218,6 +1218,12 @@ EXPORT_SYMBOL_GPL(wm8350_device_init);
1218 1218
1219void wm8350_device_exit(struct wm8350 *wm8350) 1219void wm8350_device_exit(struct wm8350 *wm8350)
1220{ 1220{
1221 int i;
1222
1223 for (i = 0; i < ARRAY_SIZE(wm8350->pmic.pdev); i++)
1224 if (wm8350->pmic.pdev[i] != NULL)
1225 platform_device_unregister(wm8350->pmic.pdev[i]);
1226
1221 free_irq(wm8350->chip_irq, wm8350); 1227 free_irq(wm8350->chip_irq, wm8350);
1222 flush_work(&wm8350->irq_work); 1228 flush_work(&wm8350->irq_work);
1223 kfree(wm8350->reg_cache); 1229 kfree(wm8350->reg_cache);