ASoC: wm8996: Remove spurious regulator_bulk_free()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 11 Jun 2012 10:15:50 +0000 (18:15 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 11 Jun 2012 12:20:22 +0000 (20:20 +0800)
We're using demv_regulator_bulk_get() so don't need to manually free and
this is in the CODEC driver not the I2C driver anyway.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8996.c

index 8af422e38fd060118968eb6f3bf62d707b32584e..379bd1e49432db220478d964d4c59f19b8ae0441 100644 (file)
@@ -3051,7 +3051,6 @@ static int wm8996_remove(struct snd_soc_codec *codec)
        for (i = 0; i < ARRAY_SIZE(wm8996->supplies); i++)
                regulator_unregister_notifier(wm8996->supplies[i].consumer,
                                              &wm8996->disable_nb[i]);
-       regulator_bulk_free(ARRAY_SIZE(wm8996->supplies), wm8996->supplies);
 
        return 0;
 }