ASoC: Remove redundant set_bias_level() from WM5100 remove()
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 18 Jan 2012 13:47:02 +0000 (13:47 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 20 Jan 2012 13:58:32 +0000 (13:58 +0000)
The framework should bring the device down before it calls the driver.

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

index de8604229bc9b80090c41583fd5e8cd19862bbc2..8ea2089f7aa1ffe6dfbd173115262ec224dfbd93 100644 (file)
@@ -2562,7 +2562,6 @@ static int wm5100_remove(struct snd_soc_codec *codec)
        struct wm5100_priv *wm5100 = snd_soc_codec_get_drvdata(codec);
        struct i2c_client *i2c = to_i2c_client(codec->dev);
 
-       wm5100_set_bias_level(codec, SND_SOC_BIAS_OFF);
        if (wm5100->pdata.hp_pol) {
                gpio_free(wm5100->pdata.hp_pol);
        }