Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 218240e2 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Remove redundant set_bias_level() from WM5100 remove()



The framework should bring the device down before it calls the driver.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent b4badd49
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -2562,7 +2562,6 @@ static int wm5100_remove(struct snd_soc_codec *codec)
	struct wm5100_priv *wm5100 = snd_soc_codec_get_drvdata(codec);
	struct wm5100_priv *wm5100 = snd_soc_codec_get_drvdata(codec);
	struct i2c_client *i2c = to_i2c_client(codec->dev);
	struct i2c_client *i2c = to_i2c_client(codec->dev);


	wm5100_set_bias_level(codec, SND_SOC_BIAS_OFF);
	if (wm5100->pdata.hp_pol) {
	if (wm5100->pdata.hp_pol) {
		gpio_free(wm5100->pdata.hp_pol);
		gpio_free(wm5100->pdata.hp_pol);
	}
	}