Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230280
b: refs/heads/master
c: 5b3b0fa
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Liam Girdwood committed Nov 19, 2010
1 parent 783d038 commit d272b1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0656f6cf6c394ede78657595dd5a8ca7a1e64853
refs/heads/master: 5b3b0fa8fb0db9645b56361cdc9a9d0ddbc35e4d
6 changes: 3 additions & 3 deletions trunk/sound/soc/codecs/twl4030.c
Original file line number Diff line number Diff line change
Expand Up @@ -2272,9 +2272,12 @@ static int twl4030_soc_probe(struct snd_soc_codec *codec)

static int twl4030_soc_remove(struct snd_soc_codec *codec)
{
struct twl4030_priv *twl4030 = snd_soc_codec_get_drvdata(codec);

/* Reset registers to their chip default before leaving */
twl4030_reset_registers(codec);
twl4030_set_bias_level(codec, SND_SOC_BIAS_OFF);
kfree(twl4030);
return 0;
}

Expand Down Expand Up @@ -2306,10 +2309,7 @@ static int __devinit twl4030_codec_probe(struct platform_device *pdev)

static int __devexit twl4030_codec_remove(struct platform_device *pdev)
{
struct twl4030_priv *twl4030 = dev_get_drvdata(&pdev->dev);

snd_soc_unregister_codec(&pdev->dev);
kfree(twl4030);
return 0;
}

Expand Down

0 comments on commit d272b1b

Please sign in to comment.