Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270529
b: refs/heads/master
c: e3d73c1
h: refs/heads/master
i:
  270527: e556bc5
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Aug 18, 2011
1 parent 20df8f7 commit 5acf41b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 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: 3f612933021ca6cc0edc2722f5a829d3c5b0a6b5
refs/heads/master: e3d73c1bbf08b9abd3f56293796ba7b5c15008f5
13 changes: 2 additions & 11 deletions trunk/sound/soc/codecs/sta32x.c
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,7 @@ static int sta32x_remove(struct snd_soc_codec *codec)
{
struct sta32x_priv *sta32x = snd_soc_codec_get_drvdata(codec);

sta32x_set_bias_level(codec, SND_SOC_BIAS_OFF);
regulator_bulk_disable(ARRAY_SIZE(sta32x->supplies), sta32x->supplies);
regulator_bulk_free(ARRAY_SIZE(sta32x->supplies), sta32x->supplies);

Expand Down Expand Up @@ -871,18 +872,8 @@ static __devinit int sta32x_i2c_probe(struct i2c_client *i2c,
static __devexit int sta32x_i2c_remove(struct i2c_client *client)
{
struct sta32x_priv *sta32x = i2c_get_clientdata(client);
struct snd_soc_codec *codec = sta32x->codec;

if (codec)
sta32x_set_bias_level(codec, SND_SOC_BIAS_OFF);

regulator_bulk_free(ARRAY_SIZE(sta32x->supplies), sta32x->supplies);

if (codec) {
snd_soc_unregister_codec(&client->dev);
snd_soc_codec_set_drvdata(codec, NULL);
}

snd_soc_unregister_codec(&client->dev);
kfree(sta32x);
return 0;
}
Expand Down

0 comments on commit 5acf41b

Please sign in to comment.