Skip to content

Commit

Permalink
drivers/rtc/rtc-pl031.c: add wakeup support
Browse files Browse the repository at this point in the history
Mark the pl031 as wake-up capable so that rtcwake and suspend test can work.

Signed-off-by: Rob Herring <[email protected]>
Cc: Srinidhi Kasagar <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Rob Herring authored and torvalds committed Feb 22, 2013
1 parent cce2da9 commit b06eef4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/rtc/rtc-pl031.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ 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:
Expand Down

0 comments on commit b06eef4

Please sign in to comment.