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>
This commit is contained in:
parent
8aec4b8750
commit
c19623db37
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user