Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316238
b: refs/heads/master
c: 8994a5e
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Jun 13, 2012
1 parent 6fbc90c commit 5f8b019
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 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: 85f243912b99b053ce0624c30609f5d8fd4445d2
refs/heads/master: 8994a5e1d2443511e677d62e97d7de3718b71325
5 changes: 1 addition & 4 deletions trunk/sound/soc/codecs/ml26124.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ static __devinit int ml26124_i2c_probe(struct i2c_client *i2c,

i2c_set_clientdata(i2c, priv);

priv->regmap = regmap_init_i2c(i2c, &ml26124_i2c_regmap);
priv->regmap = devm_regmap_init_i2c(i2c, &ml26124_i2c_regmap);
if (IS_ERR(priv->regmap)) {
ret = PTR_ERR(priv->regmap);
dev_err(&i2c->dev, "regmap_init_i2c() failed: %d\n", ret);
Expand All @@ -651,10 +651,7 @@ static __devinit int ml26124_i2c_probe(struct i2c_client *i2c,

static __devexit int ml26124_i2c_remove(struct i2c_client *client)
{
struct ml26124_priv *priv = i2c_get_clientdata(client);

snd_soc_unregister_codec(&client->dev);
regmap_exit(priv->regmap);
return 0;
}

Expand Down

0 comments on commit 5f8b019

Please sign in to comment.