[U-Boot] [PATCH v2 02/17] rtc.h: add struct udevice declaration

AKASHI Takahiro takahiro.akashi at linaro.org
Fri Oct 25 10:07:34 UTC 2019


Without this change, including rtc.h solely will cause a build error.

Signed-off-by: AKASHI Takahiro <takahiro.akashi at linaro.org>
---
 include/rtc.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/rtc.h b/include/rtc.h
index 7386d52db1d7..8aabfc1162a4 100644
--- a/include/rtc.h
+++ b/include/rtc.h
@@ -18,6 +18,8 @@
 
 #ifdef CONFIG_DM_RTC
 
+struct udevice;
+
 struct rtc_ops {
 	/**
 	 * get() - get the current time
-- 
2.21.0



More information about the U-Boot mailing list