Skip to content

Commit

Permalink
Merge remote-tracking branch 'asoc/topic/lm49453' into asoc-next
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Brown committed Dec 2, 2012
2 parents 6863784 + 2fadf6a commit ca7e5cb
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions sound/soc/codecs/lm49453.c
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ static __devinit int lm49453_i2c_probe(struct i2c_client *i2c,

i2c_set_clientdata(i2c, lm49453);

lm49453->regmap = regmap_init_i2c(i2c, &lm49453_regmap_config);
lm49453->regmap = devm_regmap_init_i2c(i2c, &lm49453_regmap_config);
if (IS_ERR(lm49453->regmap)) {
ret = PTR_ERR(lm49453->regmap);
dev_err(&i2c->dev, "Failed to allocate register map: %d\n",
Expand All @@ -1508,21 +1508,15 @@ static __devinit int lm49453_i2c_probe(struct i2c_client *i2c,
ret = snd_soc_register_codec(&i2c->dev,
&soc_codec_dev_lm49453,
lm49453_dai, ARRAY_SIZE(lm49453_dai));
if (ret < 0) {
if (ret < 0)
dev_err(&i2c->dev, "Failed to register codec: %d\n", ret);
regmap_exit(lm49453->regmap);
return ret;
}

return ret;
}

static int __devexit lm49453_i2c_remove(struct i2c_client *client)
{
struct lm49453_priv *lm49453 = i2c_get_clientdata(client);

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

Expand Down

0 comments on commit ca7e5cb

Please sign in to comment.