Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 220584
b: refs/heads/master
c: 929980a
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Samuel Ortiz committed Oct 28, 2010
1 parent d003c48 commit e005205
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: 09ff21e0f670a71ea43765cedaab9246fd81540e
refs/heads/master: 929980ab1b90b5a5c93db9b9b7d58cc6e93049c8
8 changes: 7 additions & 1 deletion trunk/drivers/mfd/tps6586x.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,19 @@ static int __devinit tps6586x_add_subdevs(struct tps6586x *tps6586x,
subdev = &pdata->subdevs[i];

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

pdev->dev.parent = tps6586x->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 e005205

Please sign in to comment.