PM / suspend: Add dependency on RTC_LIB
authorGuenter Roeck <groeck@chromium.org>
Thu, 3 Mar 2016 18:33:40 +0000 (10:33 -0800)
committerGuenter Roeck <groeck@chromium.org>
Thu, 3 Mar 2016 18:39:10 +0000 (10:39 -0800)
commit57b21d0a63f9968a147188410c0cfc266e4be934
tree08be57f0d0bfaf47240121c3992b6438d3a863b5
parente1b5d103894d097fb630aebc3c1fdaf257f7c9bb
PM / suspend: Add dependency on RTC_LIB

Commit 1eff8f99f9f9 ("PM / Suspend: Print wall time at suspend entry and
exit") calls rtc_time_to_tm(), which in turn calls rtc_time64_to_tm().
Since RTC_LIB is not mandatory for all architetures, this can result in
the following build error.

suspend.c:(.text+0x2f36c): undefined reference to `rtc_time64_to_tm'

rtc_time64_to_tm() is implemented in rtc-lib, so SUSPEND now needs to
select RTC_LIB.

Fixes: 1eff8f99f9f9 ("PM / Suspend: Print wall time at suspend entry and exit")
Signed-off-by: Guenter Roeck <groeck@chromium.org>
kernel/power/Kconfig