]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: mach: export soc_info
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Fri, 20 Feb 2026 19:44:38 +0000 (20:44 +0100)
committerRobert Marko <robimarko@gmail.com>
Mon, 23 Feb 2026 21:03:02 +0000 (22:03 +0100)
We do not want to rely on the soc_info structure. But at the moment
it is still referenced in several places. Add an EXPORT() to it.
So drivers that need access to this structure can be build as modules.

Suggested-by: Balázs Triszka <info@balika011.hu>
Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22121
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/arch/mips/rtl-otto/prom.c

index 2de9c83770d3dd4255b90035b8f6b62ac7ebf368..b0975c51aec70a97956747d97d01cf5b85658a63 100644 (file)
@@ -39,6 +39,8 @@
 #define soc_w32(val, reg)              writel(val, RTL_SOC_BASE + reg)
 
 struct rtl83xx_soc_info soc_info;
+EXPORT_SYMBOL(soc_info);
+
 const void *fdt;
 
 static char rtl_soc_name[16];