rtc: compile date.c if DM_RTC
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Wed, 11 Jul 2018 09:06:06 +0000 (18:06 +0900)
committerTom Rini <trini@konsulko.com>
Tue, 24 Jul 2018 13:25:23 +0000 (09:25 -0400)
commit8cffb50ab3f1a9a9f28e8f44ffc93a79c7c25ed9
tree8fb433a7e60a4109be0251b60cc50d7234ded6d1
parent323a73adc9a1bf2de43fe03bdd9c3038ce7c2784
rtc: compile date.c if DM_RTC

rtc_to_tm() and rtc_mktime() are required for some RTC drivers, at least
PL031. Without this patch, we also need to enable CONFIG_CMD_DATE even if
we don't want or need this command.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/rtc/date.c