提交 5509f2f8 编写于 作者: M Mark Brown

ASoC: wm5100: Fix warnings from recent patches

Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 15b52f10
......@@ -1346,7 +1346,7 @@ static int wm5100_set_bias_level(struct snd_soc_codec *codec,
enum snd_soc_bias_level level)
{
struct wm5100_priv *wm5100 = snd_soc_codec_get_drvdata(codec);
int ret, i;
int ret;
switch (level) {
case SND_SOC_BIAS_ON:
......@@ -2504,7 +2504,6 @@ static int wm5100_probe(struct snd_soc_codec *codec)
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);
if (wm5100->pdata.hp_pol) {
gpio_free(wm5100->pdata.hp_pol);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册