diff --git a/include/rtc.h b/include/rtc.h
index 7386d52db1d70d5a133beb2977898e0e172ebb4a..8aabfc1162a47a304efa53993cbffbd8a91ad0f0 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