From 0a499f9f69009973a893923c8b1a51ea5f5e1784 Mon Sep 17 00:00:00 2001 From: venu byravarasu Date: Tue, 2 Aug 2011 14:54:21 +0530 Subject: rtc: tps6591x: Registering PMU RTC as a wake source Without this registration, "wakealarm" node doesnot get created under the sysfs path /sys/class/rtc/rtc0. This is used for setting RTC alarms using sysfs. bug 846920 Original-Change-Id: I287448354612d526f4b96294fef24f5669949130 Reviewed-on: http://git-master/r/44507 Reviewed-by: Bitan Biswas Tested-by: Venu Byravarasu Rebase-Id: Rab6c47661fad4fd823fb8bb2c7aa5b8b210f23a7 --- drivers/rtc/rtc-tps6591x.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/rtc') diff --git a/drivers/rtc/rtc-tps6591x.c b/drivers/rtc/rtc-tps6591x.c index b22aa4a9be0d..e650173f5de7 100644 --- a/drivers/rtc/rtc-tps6591x.c +++ b/drivers/rtc/rtc-tps6591x.c @@ -434,6 +434,7 @@ static int __devinit tps6591x_rtc_probe(struct platform_device *pdev) dev_err(&pdev->dev, "\n no IRQ specified, wakeup is disabled\n"); dev_set_drvdata(&pdev->dev, rtc); + device_init_wakeup(&pdev->dev, 1); rtc->rtc = rtc_device_register(pdev->name, &pdev->dev, &tps6591x_rtc_ops, THIS_MODULE); -- cgit v1.2.3