Skip to contentSkip to conversation

rtc: pl031: add wake-up support

PATCH New Rob Herring 1 participant 1 message Dec 30, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rtc: pl031: add wake-up support

From: Rob Herring <[email protected]>

Mark the pl031 as wake-up capable so that rtcwake and suspend test can work.

Cc Srinidhi Kasagar <[email protected]>
Cc Linus Walleij <[email protected]>
Cc Alessandro Zummo <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
Cc rtc-linux at googlegroups.com
Cc linux-kernel at vger.kernel.org
---
 drivers/rtc/rtc-pl031.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/rtc/rtc-pl031.c +2 -0
index 08378e3..9e20958 100644
@@ -380,6 +380,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:
Signature · 1 line
1.7.10.4