Skip to content

Commit

Permalink
ASoC: Remove redundant set_bias_level() from WM5100 remove()
Browse files Browse the repository at this point in the history
The framework should bring the device down before it calls the driver.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Jan 20, 2012
1 parent b4badd4 commit 218240e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/soc/codecs/wm5100.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 218240e

Please sign in to comment.