diff options
Diffstat (limited to 'drivers/rtc/rtc-twl.c')
| -rw-r--r-- | drivers/rtc/rtc-twl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-twl.c b/drivers/rtc/rtc-twl.c index 02faf3c4e0d5..c2e80d7ca5e2 100644 --- a/drivers/rtc/rtc-twl.c +++ b/drivers/rtc/rtc-twl.c | |||
| @@ -524,6 +524,8 @@ static int twl_rtc_probe(struct platform_device *pdev) | |||
| 524 | if (ret < 0) | 524 | if (ret < 0) |
| 525 | goto out1; | 525 | goto out1; |
| 526 | 526 | ||
| 527 | device_init_wakeup(&pdev->dev, 1); | ||
| 528 | |||
| 527 | rtc = rtc_device_register(pdev->name, | 529 | rtc = rtc_device_register(pdev->name, |
| 528 | &pdev->dev, &twl_rtc_ops, THIS_MODULE); | 530 | &pdev->dev, &twl_rtc_ops, THIS_MODULE); |
| 529 | if (IS_ERR(rtc)) { | 531 | if (IS_ERR(rtc)) { |
| @@ -542,7 +544,6 @@ static int twl_rtc_probe(struct platform_device *pdev) | |||
| 542 | } | 544 | } |
| 543 | 545 | ||
| 544 | platform_set_drvdata(pdev, rtc); | 546 | platform_set_drvdata(pdev, rtc); |
| 545 | device_init_wakeup(&pdev->dev, 1); | ||
| 546 | return 0; | 547 | return 0; |
| 547 | 548 | ||
| 548 | out2: | 549 | out2: |
