From: AKASHI Takahiro Date: Wed, 11 Jul 2018 09:06:06 +0000 (+0900) Subject: rtc: compile date.c if DM_RTC X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=8cffb50ab3f1a9a9f28e8f44ffc93a79c7c25ed9;p=u-boot.git 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 --- 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