|
@@ -524,6 +524,8 @@ static int twl_rtc_probe(struct platform_device *pdev)
|
|
|
if (ret < 0)
|
|
|
goto out1;
|
|
|
|
|
|
+ device_init_wakeup(&pdev->dev, 1);
|
|
|
+
|
|
|
rtc = rtc_device_register(pdev->name,
|
|
|
&pdev->dev, &twl_rtc_ops, THIS_MODULE);
|
|
|
if (IS_ERR(rtc)) {
|
|
@@ -542,7 +544,6 @@ static int twl_rtc_probe(struct platform_device *pdev)
|
|
|
}
|
|
|
|
|
|
platform_set_drvdata(pdev, rtc);
|
|
|
- device_init_wakeup(&pdev->dev, 1);
|
|
|
return 0;
|
|
|
|
|
|
out2:
|