Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220582
b: refs/heads/master
c: b59cede
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Samuel Ortiz committed Oct 28, 2010
1 parent 558e98c commit e71d85f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 2c36af7b57540ea52d74dbbe71bf860aca910bb9
refs/heads/master: b59cedeffaef54dd091baf01fd5e276ac50a3176
8 changes: 7 additions & 1 deletion trunk/drivers/mfd/da903x.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,13 +470,19 @@ static int __devinit da903x_add_subdevs(struct da903x_chip *chip,
subdev = &pdata->subdevs[i];

pdev = platform_device_alloc(subdev->name, subdev->id);
if (!pdev) {
ret = -ENOMEM;
goto failed;
}

pdev->dev.parent = chip->dev;
pdev->dev.platform_data = subdev->platform_data;

ret = platform_device_add(pdev);
if (ret)
if (ret) {
platform_device_put(pdev);
goto failed;
}
}
return 0;

Expand Down

0 comments on commit e71d85f

Please sign in to comment.