From c6bbdb64897ef3847d42c23d24468593ba6f460a Mon Sep 17 00:00:00 2001 From: Markus Stockhausen Date: Fri, 20 Feb 2026 20:44:38 +0100 Subject: [PATCH] realtek: mach: export soc_info MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Markus Stockhausen Link: https://github.com/openwrt/openwrt/pull/22121 Signed-off-by: Robert Marko --- target/linux/realtek/files-6.12/arch/mips/rtl-otto/prom.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/linux/realtek/files-6.12/arch/mips/rtl-otto/prom.c b/target/linux/realtek/files-6.12/arch/mips/rtl-otto/prom.c index 2de9c83770..b0975c51ae 100644 --- a/target/linux/realtek/files-6.12/arch/mips/rtl-otto/prom.c +++ b/target/linux/realtek/files-6.12/arch/mips/rtl-otto/prom.c @@ -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];