This list will be used by the upcoming bfetch command to
determine whether the running barebox has any RTCs registered.

The symbol already has external linkage.

Signed-off-by: Ahmad Fatoum <a.fat...@barebox.org>
---
 include/linux/rtc.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/linux/rtc.h b/include/linux/rtc.h
index 4fa999723de1..43c8fb248f86 100644
--- a/include/linux/rtc.h
+++ b/include/linux/rtc.h
@@ -15,6 +15,7 @@
 
 #include <common.h>
 #include <linux/types.h>
+#include <linux/list.h>
 #include <linux/errno.h>
 #include <linux/nvmem-provider.h>
 #include <rtc.h>
@@ -40,6 +41,8 @@ struct rtc_class_ops {
        int (*set_time)(struct rtc_device *, struct rtc_time *);
 };
 
+extern struct class rtc_class;
+
 extern int rtc_register(struct rtc_device *rtcdev);
 
 #ifdef CONFIG_RTC_CLASS
-- 
2.39.5


Reply via email to