Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282199
b: refs/heads/master
c: cbe10a3
h: refs/heads/master
i:
  282197: 7b2cd3e
  282195: a964561
  282191: 1ad1587
v: v3
  • Loading branch information
Fabio Estevam authored and Mark Brown committed Dec 29, 2011
1 parent b415ce4 commit 2367972
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: 32c78de8f17369def492ea3ddd785f0cc140af02
refs/heads/master: cbe10a3674ba1cfa227d0d4e990353bada85fa09
5 changes: 1 addition & 4 deletions trunk/drivers/regulator/mc13783-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ static int __devinit mc13783_regulator_probe(struct platform_device *pdev)

dev_dbg(&pdev->dev, "%s id %d\n", __func__, pdev->id);

priv = kzalloc(sizeof(*priv) +
priv = devm_kzalloc(&pdev->dev, sizeof(*priv) +
pdata->num_regulators * sizeof(priv->regulators[0]),
GFP_KERNEL);
if (!priv)
Expand Down Expand Up @@ -374,8 +374,6 @@ static int __devinit mc13783_regulator_probe(struct platform_device *pdev)
while (--i >= 0)
regulator_unregister(priv->regulators[i]);

kfree(priv);

return ret;
}

Expand All @@ -391,7 +389,6 @@ static int __devexit mc13783_regulator_remove(struct platform_device *pdev)
for (i = 0; i < pdata->num_regulators; i++)
regulator_unregister(priv->regulators[i]);

kfree(priv);
return 0;
}

Expand Down

0 comments on commit 2367972

Please sign in to comment.