ASoC: tlv320dac33 - disable regulators at i2c remove()
authorLiam Girdwood <lrg@slimlogic.co.uk>
Fri, 26 Mar 2010 20:05:54 +0000 (20:05 +0000)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Wed, 28 Apr 2010 12:27:18 +0000 (13:27 +0100)
Acked-by: Peter Ujfalusi <peter.ujfalusi@nokia.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/codecs/tlv320dac33.c

index 3eddaec728c1a864aeb1d36ce7d9f765e734e678..54b2a0508a1110a0d510d7dab958507be645693c 100644 (file)
@@ -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);