Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282200
b: refs/heads/master
c: 4fef21e
h: refs/heads/master
v: v3
  • Loading branch information
Fabio Estevam authored and Mark Brown committed Dec 30, 2011
1 parent 2367972 commit dd584a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: cbe10a3674ba1cfa227d0d4e990353bada85fa09
refs/heads/master: 4fef21eaacb9d739f0120c930c78dac4f6875b9f
4 changes: 1 addition & 3 deletions trunk/drivers/regulator/mc13892-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ static int __devinit mc13892_regulator_probe(struct platform_device *pdev)
if (num_regulators <= 0)
return -EINVAL;

priv = kzalloc(sizeof(*priv) +
priv = devm_kzalloc(&pdev->dev, sizeof(*priv) +
num_regulators * sizeof(priv->regulators[0]),
GFP_KERNEL);
if (!priv)
Expand Down Expand Up @@ -615,7 +615,6 @@ static int __devinit mc13892_regulator_probe(struct platform_device *pdev)

err_free:
mc13xxx_unlock(mc13892);
kfree(priv);

return ret;
}
Expand All @@ -630,7 +629,6 @@ static int __devexit mc13892_regulator_remove(struct platform_device *pdev)
for (i = 0; i < priv->num_regulators; i++)
regulator_unregister(priv->regulators[i]);

kfree(priv);
return 0;
}

Expand Down

0 comments on commit dd584a3

Please sign in to comment.