rtc: test: enable wakeup flags
authorRoman Stratiienko <roman.stratiienko@globallogic.com>
Wed, 15 May 2019 14:20:22 +0000 (17:20 +0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 23 May 2019 15:44:52 +0000 (17:44 +0200)
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>
drivers/rtc/rtc-test.c

index b298e99..74b3a06 100644 (file)
@@ -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);