diff options
author | venu byravarasu <vbyravarasu@nvidia.com> | 2011-08-02 14:54:21 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:48:09 -0800 |
commit | 0a499f9f69009973a893923c8b1a51ea5f5e1784 (patch) | |
tree | 086ea8c4e4ea9e8ad21e66acd3961cf58cc39a92 /drivers/rtc | |
parent | 77108d0e8fd5f4dcdfce01b1a41ef076f6346095 (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
Original-Change-Id: I287448354612d526f4b96294fef24f5669949130
Reviewed-on: http://git-master/r/44507
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Rebase-Id: Rab6c47661fad4fd823fb8bb2c7aa5b8b210f23a7
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-tps6591x.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |