Arnd Bergmann 573e2bf054 rtc: xgene: mark PM functions as __maybe_unused
The new xgene_rtc_alarm_irq_enabled() function is only accessed
from PM code, which is inside of an #ifdef; this causes a harmless
build warning when CONFIG_PM is disabled:

drivers/rtc/rtc-xgene.c:108:12: error: 'xgene_rtc_alarm_irq_enabled' defined but not used [-Werror=unused-function]

Just remove the #ifdef and use __maybe_unused annotations instead,
to make the code more robust here.

Fixes: d0bcd82b1379 ("rtc: xgene: Fix suspend/resume")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Loc Ho <lho@apm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
2017-11-09 01:25:47 +01:00
..
2017-07-07 13:14:14 +02:00
2017-07-07 13:14:14 +02:00
2017-10-13 00:10:12 +02:00
2017-03-09 01:29:17 +01:00
2017-07-07 13:14:14 +02:00
2017-08-24 16:34:51 +02:00
2016-05-20 12:33:51 +02:00
2017-10-13 00:10:06 +02:00
2017-10-13 00:10:17 +02:00
2016-05-20 12:33:51 +02:00
2017-09-01 01:10:11 +02:00
2016-05-20 12:33:51 +02:00
2017-09-01 01:10:11 +02:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2015-09-05 13:19:06 +02:00
2016-05-20 12:33:51 +02:00
2017-10-13 00:10:10 +02:00
2017-09-01 01:10:11 +02:00
2017-01-11 17:23:04 +01:00
2017-08-22 12:05:21 +02:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2017-09-05 09:55:02 +02:00
2017-07-07 13:14:19 +02:00
2017-07-31 00:17:44 +02:00
2017-08-24 11:03:35 +02:00
2017-04-22 18:01:15 +02:00
2016-05-20 12:33:51 +02:00
2017-06-03 10:52:04 +02:00
2017-08-24 11:03:36 +02:00
2016-05-20 12:33:51 +02:00