From 8cffb50ab3f1a9a9f28e8f44ffc93a79c7c25ed9 Mon Sep 17 00:00:00 2001 From: AKASHI Takahiro Date: Wed, 11 Jul 2018 18:06:06 +0900 Subject: [PATCH] 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 Reviewed-by: Heinrich Schuchardt --- drivers/rtc/date.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/date.c b/drivers/rtc/date.c index f2568cf886..c57317d2c2 100644 --- a/drivers/rtc/date.c +++ b/drivers/rtc/date.c @@ -9,7 +9,8 @@ #include #include -#if defined(CONFIG_CMD_DATE) || defined(CONFIG_TIMESTAMP) +#if defined(CONFIG_CMD_DATE) || defined(CONFIG_DM_RTC) || \ + defined(CONFIG_TIMESTAMP) #define FEBRUARY 2 #define STARTOFTIME 1970 -- 2.25.1