aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-01-24 14:51:34 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-01-24 14:51:34 -0500
commit5509f2f80c711add6bbcec9af7f4bbba2e2cc22b (patch)
tree1b28dc400349c09ea9fcd3dff0b6f18d050c8edd
parent15b52f10ec6131e1aff49e7823a67732cdc066a0 (diff)
ASoC: wm5100: Fix warnings from recent patches
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--sound/soc/codecs/wm5100.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm5100.c b/sound/soc/codecs/wm5100.c
index e40c81eaec3..714256e609c 100644
--- a/sound/soc/codecs/wm5100.c
+++ b/sound/soc/codecs/wm5100.c
@@ -1346,7 +1346,7 @@ static int wm5100_set_bias_level(struct snd_soc_codec *codec,
1346 enum snd_soc_bias_level level) 1346 enum snd_soc_bias_level level)
1347{ 1347{
1348 struct wm5100_priv *wm5100 = snd_soc_codec_get_drvdata(codec); 1348 struct wm5100_priv *wm5100 = snd_soc_codec_get_drvdata(codec);
1349 int ret, i; 1349 int ret;
1350 1350
1351 switch (level) { 1351 switch (level) {
1352 case SND_SOC_BIAS_ON: 1352 case SND_SOC_BIAS_ON:
@@ -2504,7 +2504,6 @@ err_gpio:
2504static int wm5100_remove(struct snd_soc_codec *codec) 2504static int wm5100_remove(struct snd_soc_codec *codec)
2505{ 2505{
2506 struct wm5100_priv *wm5100 = snd_soc_codec_get_drvdata(codec); 2506 struct wm5100_priv *wm5100 = snd_soc_codec_get_drvdata(codec);
2507 struct i2c_client *i2c = to_i2c_client(codec->dev);
2508 2507
2509 if (wm5100->pdata.hp_pol) { 2508 if (wm5100->pdata.hp_pol) {
2510 gpio_free(wm5100->pdata.hp_pol); 2509 gpio_free(wm5100->pdata.hp_pol);