From: Liam Girdwood Date: Fri, 26 Mar 2010 20:05:54 +0000 (+0000) Subject: ASoC: tlv320dac33 - disable regulators at i2c remove() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cf134d5bfb19cdee922b95738ce3cfe86c0e8f7a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ASoC: tlv320dac33 - disable regulators at i2c remove() Acked-by: Peter Ujfalusi Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- diff --git a/sound/soc/codecs/tlv320dac33.c b/sound/soc/codecs/tlv320dac33.c index 3eddaec728c1..54b2a0508a11 100644 --- a/sound/soc/codecs/tlv320dac33.c +++ b/sound/soc/codecs/tlv320dac33.c @@ -1584,6 +1584,7 @@ static int __devexit dac33_i2c_remove(struct i2c_client *client) if (dac33->irq >= 0) free_irq(dac33->irq, &dac33->codec); + regulator_bulk_disable(ARRAY_SIZE(dac33->supplies), dac33->supplies); regulator_bulk_free(ARRAY_SIZE(dac33->supplies), dac33->supplies); destroy_workqueue(dac33->dac33_wq);