diff options
author | Mark Brown | 2012-12-02 13:35:09 +0900 |
---|---|---|
committer | Mark Brown | 2012-12-02 13:35:09 +0900 |
commit | ca7e5cb2233641405297f4877884c13b429e3547 (patch) | |
tree | 8458cc5a0191bd0f27a2d4c7be68c74323c944d6 | |
parent | 686378497f736a7b99aca8c614a020a6170dcaa2 (diff) | |
parent | 2fadf6a861587ec554c4a73222d31e12003176a8 (diff) |
Merge remote-tracking branch 'asoc/topic/lm49453' into asoc-next
-rw-r--r-- | sound/soc/codecs/lm49453.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sound/soc/codecs/lm49453.c b/sound/soc/codecs/lm49453.c index 99b0a9dcff34..096b6aa87f0f 100644 --- a/sound/soc/codecs/lm49453.c +++ b/sound/soc/codecs/lm49453.c @@ -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", @@ -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; } |