[openwrt/openwrt] realtek: mach: export soc_info

LEDE Commits lede-commits at lists.infradead.org
Mon Feb 23 13:03:06 PST 2026


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/c6bbdb64897ef3847d42c23d24468593ba6f460a

commit c6bbdb64897ef3847d42c23d24468593ba6f460a
Author: Markus Stockhausen <markus.stockhausen at gmx.de>
AuthorDate: Fri Feb 20 20:44:38 2026 +0100

    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 <info at balika011.hu>
    Signed-off-by: Markus Stockhausen <markus.stockhausen at gmx.de>
    Link: https://github.com/openwrt/openwrt/pull/22121
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 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];




More information about the lede-commits mailing list