Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270656
b: refs/heads/master
c: 0a74268
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Sep 23, 2011
1 parent 0da7848 commit d7cd22f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0010bcc2260e3c139c8f54ac452a6d0f7aa45db1
refs/heads/master: 0a742681e6072a71f30cfe6312f758f1cd185c21
5 changes: 5 additions & 0 deletions trunk/sound/soc/codecs/wm5100.c
Original file line number Diff line number Diff line change
Expand Up @@ -2493,6 +2493,8 @@ static int wm5100_probe(struct snd_soc_codec *codec)
return 0;

err_gpio:
if (i2c->irq)
free_irq(i2c->irq, codec);
wm5100_free_gpio(codec);
err_reset:
if (wm5100->pdata.reset) {
Expand Down Expand Up @@ -2523,11 +2525,14 @@ 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);

wm5100_set_bias_level(codec, SND_SOC_BIAS_OFF);
if (wm5100->pdata.hp_pol) {
gpio_free(wm5100->pdata.hp_pol);
}
if (i2c->irq)
free_irq(i2c->irq, codec);
wm5100_free_gpio(codec);
if (wm5100->pdata.reset) {
gpio_set_value_cansleep(wm5100->pdata.reset, 1);
Expand Down

0 comments on commit d7cd22f

Please sign in to comment.