|
@@ -429,6 +429,8 @@ static int pm8xxx_rtc_probe(struct platform_device *pdev)
|
|
|
|
|
|
platform_set_drvdata(pdev, rtc_dd);
|
|
|
|
|
|
+ device_init_wakeup(&pdev->dev, 1);
|
|
|
+
|
|
|
/* Register the RTC device */
|
|
|
rtc_dd->rtc = devm_rtc_device_register(&pdev->dev, "pm8xxx_rtc",
|
|
|
&pm8xxx_rtc_ops, THIS_MODULE);
|
|
@@ -448,8 +450,6 @@ static int pm8xxx_rtc_probe(struct platform_device *pdev)
|
|
|
return rc;
|
|
|
}
|
|
|
|
|
|
- device_init_wakeup(&pdev->dev, 1);
|
|
|
-
|
|
|
dev_dbg(&pdev->dev, "Probe success !!\n");
|
|
|
|
|
|
return 0;
|