PM: sleep: check RTC features instead of ops in suspend_test
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 4 Aug 2021 10:44:07 +0000 (12:44 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 4 Aug 2021 18:23:05 +0000 (20:23 +0200)
commit4fac49fd0a349aa3afb3ad7ec778a00592c7ab59
tree770bfbf9830384d5c39afe6ef2d3255c639240cc
parentd2c8cce647f3022d5960a3bf2b50a2da341d9c8b
PM: sleep: check RTC features instead of ops in suspend_test

Test RTC_FEATURE_ALARM instead of relying on ops->set_alarm to know whether
alarms are available.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/suspend_test.c