From: Markus Stockhausen Date: Fri, 20 Feb 2026 19:44:38 +0000 (+0100) Subject: realtek: mach: export soc_info X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6bbdb64897ef3847d42c23d24468593ba6f460a;p=thirdparty%2Fopenwrt.git realtek: mach: export soc_info 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 --- 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 2de9c83770d..b0975c51aec 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];