Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319749
b: refs/heads/master
c: 17ffba6
h: refs/heads/master
i:
  319747: b593434
v: v3
  • Loading branch information
NeilBrown authored and Samuel Ortiz committed Jul 9, 2012
1 parent 12fa032 commit 3f3f72a
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 5500e3964b8c154dc5af51ebcd7cd4df5d4abfee
refs/heads/master: 17ffba6ad235cf9c21937ee1343df0d0fb2371fa
3 changes: 2 additions & 1 deletion trunk/drivers/mfd/twl-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,6 @@ add_numbered_child(unsigned chip, const char *name, int num,
goto err;
}

device_init_wakeup(&pdev->dev, can_wakeup);
pdev->dev.parent = &twl->client->dev;

if (pdata) {
Expand All @@ -593,6 +592,8 @@ add_numbered_child(unsigned chip, const char *name, int num,
}

status = platform_device_add(pdev);
if (status == 0)
device_init_wakeup(&pdev->dev, can_wakeup);

err:
if (status < 0) {
Expand Down

0 comments on commit 3f3f72a

Please sign in to comment.