Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319776
b: refs/heads/master
c: 18273c5
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Samuel Ortiz committed Jul 16, 2012
1 parent 99a7831 commit cec722a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: ad95ad10b0881dd317d833dd37ba6706d704073a
refs/heads/master: 18273c5b463d9f98ef81f1a6217a7f4168dd809a
9 changes: 7 additions & 2 deletions trunk/drivers/mfd/pcf50633-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,13 @@ static int __devinit pcf50633_probe(struct i2c_client *client,
}

pdev->dev.parent = pcf->dev;
platform_device_add_data(pdev, &pdata->reg_init_data[i],
sizeof(pdata->reg_init_data[i]));
if (platform_device_add_data(pdev, &pdata->reg_init_data[i],
sizeof(pdata->reg_init_data[i])) < 0) {
platform_device_put(pdev);
dev_err(pcf->dev, "Out of memory for regulator parameters %d\n",
i);
continue;
}
pcf->regulator_pdev[i] = pdev;

platform_device_add(pdev);
Expand Down

0 comments on commit cec722a

Please sign in to comment.