Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284058
b: refs/heads/master
c: 6945e9f
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Jan 2, 2012
1 parent 4b58d83 commit 780200f
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: a54877d7456ffa88c95d7eb587971792cb1892d6
refs/heads/master: 6945e9f9dfee897891a8ac620ce1621a2daf7e02
5 changes: 1 addition & 4 deletions trunk/sound/soc/codecs/tpa6130a2.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ static int __devinit tpa6130a2_probe(struct i2c_client *client,
return -ENODEV;
}

data = kzalloc(sizeof(*data), GFP_KERNEL);
data = devm_kzalloc(&client->dev, sizeof(*data), GFP_KERNEL);
if (data == NULL) {
dev_err(dev, "Can not allocate memory\n");
return -ENOMEM;
Expand Down Expand Up @@ -450,7 +450,6 @@ static int __devinit tpa6130a2_probe(struct i2c_client *client,
if (data->power_gpio >= 0)
gpio_free(data->power_gpio);
err_gpio:
kfree(data);
tpa6130a2_client = NULL;

return ret;
Expand All @@ -466,8 +465,6 @@ static int __devexit tpa6130a2_remove(struct i2c_client *client)
gpio_free(data->power_gpio);

regulator_put(data->supply);

kfree(data);
tpa6130a2_client = NULL;

return 0;
Expand Down

0 comments on commit 780200f

Please sign in to comment.