summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authorZYH <[email protected]>2018-03-23 14:52:07 +0800
committerZYH <[email protected]>2018-03-23 14:52:07 +0800
commit93060f2478a4c0a3dc3320ff65cffdd6d3566177 (patch)
tree66c145421fb5f92ca04c4179909d066be1de7f88 /components/drivers
parent0fcf08ae881fe0e64029b8a83858dc789d003b5c (diff)
parente8ee150d1e65baae56cdaa38f9799ad94b056311 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'components/drivers')
-rwxr-xr-xcomponents/drivers/Kconfig1
-rw-r--r--components/drivers/rtc/rtc.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/components/drivers/Kconfig b/components/drivers/Kconfig
index 90ad1c940f..fc02b0eaed 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 a33e1dfccf..f64a528ef0 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 */