[PATCH v1 3/3] rtc: da9052: Register ability of alarm to wake device from suspend

From: Adam Ward
Date: Wed Mar 04 2015 - 12:39:04 EST


Signed-off-by: Adam Ward <adam.ward.opensource@xxxxxxxxxxx>
Tested-by: Adam Ward <adam.ward.opensource@xxxxxxxxxxx>
---
drivers/rtc/rtc-da9052.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/rtc/rtc-da9052.c b/drivers/rtc/rtc-da9052.c
index acc3e5a..1ba4371 100644
--- a/drivers/rtc/rtc-da9052.c
+++ b/drivers/rtc/rtc-da9052.c
@@ -309,6 +309,8 @@ static int da9052_rtc_probe(struct platform_device *pdev)
return ret;
}

+ device_init_wakeup(&pdev->dev, true);
+
rtc->rtc = devm_rtc_device_register(&pdev->dev, pdev->name,
&da9052_rtc_ops, THIS_MODULE);
return PTR_ERR_OR_ZERO(rtc->rtc);
--
end-of-patch for rtc: da9052: Corrections to access, validation and capability

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/