summaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorRoman Stratiienko2019-05-15 16:20:22 +0200
committerAlexandre Belloni2019-05-23 17:44:52 +0200
commitc19623db3766c5710c3032ab0b1ff98c4935a58a (patch)
tree8c0edb4e38f7e5c6b6e975eaf2798208665e968f /drivers/rtc
parentrtc: ds2404: use hw endiannes variable (diff)
downloadkernel-qcow2-linux-c19623db3766c5710c3032ab0b1ff98c4935a58a.tar.gz
kernel-qcow2-linux-c19623db3766c5710c3032ab0b1ff98c4935a58a.tar.xz
kernel-qcow2-linux-c19623db3766c5710c3032ab0b1ff98c4935a58a.zip
rtc: test: enable wakeup flags
Alarmtimer interface uses only the RTC with wekeup flags enabled. Allow to use rtc-test driver with alarmtimer interface. Signed-off-by: Roman Stratiienko <roman.stratiienko@globallogic.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-test.c b/drivers/rtc/rtc-test.c
index b298e9902f45..74b3a0603b73 100644
--- a/drivers/rtc/rtc-test.c
+++ b/drivers/rtc/rtc-test.c
@@ -133,6 +133,7 @@ static int test_probe(struct platform_device *plat_dev)
break;
default:
rtd->rtc->ops = &test_rtc_ops;
+ device_init_wakeup(&plat_dev->dev, 1);
}
timer_setup(&rtd->alarm, test_rtc_alarm_handler, 0);