Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283812
b: refs/heads/master
c: cc0b401
h: refs/heads/master
v: v3
  • Loading branch information
Brian Austin authored and Mark Brown committed Nov 28, 2011
1 parent 8b6aa22 commit e716d87
Show file tree
Hide file tree
Showing 2 changed files with 3 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: af3c2621a9b4d22b8927b91bc9cc02a13087e12b
refs/heads/master: cc0b401ad87e830843d3034f892c4017f9837fae
6 changes: 2 additions & 4 deletions trunk/sound/soc/codecs/cs42l73.c
Original file line number Diff line number Diff line change
Expand Up @@ -1339,7 +1339,8 @@ static __devinit int cs42l73_i2c_probe(struct i2c_client *i2c_client,
unsigned int devid = 0;
unsigned int reg;

cs42l73 = kzalloc((sizeof *cs42l73), GFP_KERNEL);
cs42l73 = devm_kzalloc(&i2c_client->dev, sizeof(struct cs42l73_private),
GFP_KERNEL);
if (!cs42l73) {
dev_err(&i2c_client->dev, "could not allocate codec\n");
return -ENOMEM;
Expand Down Expand Up @@ -1394,8 +1395,6 @@ static __devinit int cs42l73_i2c_probe(struct i2c_client *i2c_client,
regmap_exit(cs42l73->regmap);

err:
kfree(cs42l73);

return ret;
}

Expand All @@ -1406,7 +1405,6 @@ static __devexit int cs42l73_i2c_remove(struct i2c_client *client)
snd_soc_unregister_codec(&client->dev);
regmap_exit(cs42l73->regmap);

kfree(cs42l73);
return 0;
}

Expand Down

0 comments on commit e716d87

Please sign in to comment.