summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorvenu byravarasu <vbyravarasu@nvidia.com>2011-08-02 14:54:21 +0530
committerVarun Colbert <vcolbert@nvidia.com>2011-08-09 16:09:23 -0700
commit45eca2033505d7049dcde1c29d48049c443aad11 (patch)
treefbee9400cd0c65ceb5b0bd787c827abba62793ac /drivers/rtc
parent185cc7e5827b2baf7b0d7509070189accbc5e4f5 (diff)
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 Change-Id: I287448354612d526f4b96294fef24f5669949130 Reviewed-on: http://git-master/r/44507 Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Tested-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-tps6591x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-tps6591x.c b/drivers/rtc/rtc-tps6591x.c
index db3208494571..9ca5c54349dd 100644
--- a/drivers/rtc/rtc-tps6591x.c
+++ b/drivers/rtc/rtc-tps6591x.c
@@ -432,7 +432,7 @@ static int __devinit tps6591x_rtc_probe(struct platform_device *pdev)
if (pdata->irq < 0)
dev_err(&pdev->dev, "\n no IRQ specified, wakeup is disabled\n");
-
+ device_init_wakeup(&pdev->dev, 1);
rtc->rtc = rtc_device_register(pdev->name, &pdev->dev,
&tps6591x_rtc_ops, THIS_MODULE);