|
@@ -371,6 +371,7 @@ static int pl031_probe(struct amba_device *adev, const struct amba_id *id)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ device_init_wakeup(&adev->dev, 1);
|
|
|
ldata->rtc = rtc_device_register("pl031", &adev->dev, ops,
|
|
|
THIS_MODULE);
|
|
|
if (IS_ERR(ldata->rtc)) {
|
|
@@ -384,8 +385,6 @@ static int pl031_probe(struct amba_device *adev, const struct amba_id *id)
|
|
|
goto out_no_irq;
|
|
|
}
|
|
|
|
|
|
- device_init_wakeup(&adev->dev, 1);
|
|
|
-
|
|
|
return 0;
|
|
|
|
|
|
out_no_irq:
|