Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302204
b: refs/heads/master
c: ef6bd5a
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Mark Brown committed Apr 13, 2012
1 parent 051c50b commit 024861e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 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: 276909d3599987a0ba44e1b984fde20323ff2aea
refs/heads/master: ef6bd5a3f128254bee0b9052f3813ca3c3c82fb5
7 changes: 1 addition & 6 deletions trunk/drivers/regulator/isl6271a-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ static int __devinit isl6271a_probe(struct i2c_client *i2c,
if (!i2c_check_functionality(i2c->adapter, I2C_FUNC_SMBUS_BYTE_DATA))
return -EIO;

pmic = kzalloc(sizeof(struct isl_pmic), GFP_KERNEL);
pmic = devm_kzalloc(&i2c->dev, sizeof(struct isl_pmic), GFP_KERNEL);
if (!pmic)
return -ENOMEM;

Expand Down Expand Up @@ -179,8 +179,6 @@ static int __devinit isl6271a_probe(struct i2c_client *i2c,
error:
while (--i >= 0)
regulator_unregister(pmic->rdev[i]);

kfree(pmic);
return err;
}

Expand All @@ -191,9 +189,6 @@ static int __devexit isl6271a_remove(struct i2c_client *i2c)

for (i = 0; i < 3; i++)
regulator_unregister(pmic->rdev[i]);

kfree(pmic);

return 0;
}

Expand Down

0 comments on commit 024861e

Please sign in to comment.