From c74bc870e859e38f6e5bc57bac8b88de39984454 Mon Sep 17 00:00:00 2001 From: armink Date: Wed, 21 Mar 2018 09:13:49 +0800 Subject: [PATCH] [DeviceDriver][RTC] Fix rtc Kconfig and missing return. --- components/drivers/Kconfig | 1 + components/drivers/rtc/rtc.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/components/drivers/Kconfig b/components/drivers/Kconfig index 90ad1c940..fc02b0eae 100755 --- a/components/drivers/Kconfig +++ b/components/drivers/Kconfig @@ -90,6 +90,7 @@ config RT_USING_RTC default n config RTC_SYNC_USING_NTP bool "Using NTP auto sync RTC time" + select PKG_USING_NETUTILS select PKG_NETUTILS_NTP default n diff --git a/components/drivers/rtc/rtc.c b/components/drivers/rtc/rtc.c index a33e1dfcc..f64a528ef 100644 --- a/components/drivers/rtc/rtc.c +++ b/components/drivers/rtc/rtc.c @@ -225,6 +225,8 @@ int rt_rtc_ntp_sync_init(void) } init_ok = RT_TRUE; + + return RT_EOK; } INIT_COMPONENT_EXPORT(rt_rtc_ntp_sync_init); #endif /* RTC_SYNC_USING_NTP */