Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316224
b: refs/heads/master
c: 7d11668
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Jun 9, 2012
1 parent d33b856 commit f99a29e
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 0f163546a772d62250f59bad6a9338a0e3a2605c
refs/heads/master: 7d116684945459e98538c797dca37c54ddd89906
4 changes: 1 addition & 3 deletions trunk/sound/soc/codecs/wm8903.c
Original file line number Diff line number Diff line change
Expand Up @@ -2124,7 +2124,7 @@ static __devinit int wm8903_i2c_probe(struct i2c_client *i2c,
return -ENOMEM;
wm8903->dev = &i2c->dev;

wm8903->regmap = regmap_init_i2c(i2c, &wm8903_regmap);
wm8903->regmap = devm_regmap_init_i2c(i2c, &wm8903_regmap);
if (IS_ERR(wm8903->regmap)) {
ret = PTR_ERR(wm8903->regmap);
dev_err(&i2c->dev, "Failed to allocate register map: %d\n",
Expand Down Expand Up @@ -2191,7 +2191,6 @@ static __devinit int wm8903_i2c_probe(struct i2c_client *i2c,

return 0;
err:
regmap_exit(wm8903->regmap);
return ret;
}

Expand All @@ -2200,7 +2199,6 @@ static __devexit int wm8903_i2c_remove(struct i2c_client *client)
struct wm8903_priv *wm8903 = i2c_get_clientdata(client);

wm8903_free_gpio(wm8903);
regmap_exit(wm8903->regmap);
snd_soc_unregister_codec(&client->dev);

return 0;
Expand Down

0 comments on commit f99a29e

Please sign in to comment.