Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: ralink: export rt_sysc_membase for rt2880_wdt.c

rt2880_wdt.c uses (well, attempts to use) rt_sysc_membase. However,
when this watchdog driver is built as a loadable module, there is a
build error since the rt_sysc_membase symbol is not exported.
Export it to quell the build error.

ERROR: modpost: "rt_sysc_membase" [drivers/watchdog/rt2880_wdt.ko] undefined!

Fixes: 473cf939ff34 ("watchdog: add ralink watchdog driver")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Wim Van Sebroeck <wim@iguana.be>
Cc: John Crispin <john@phrozen.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-watchdog@vger.kernel.org
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Randy Dunlap and committed by
Thomas Bogendoerfer
fef532ea 6855adc2

+2
+2
arch/mips/ralink/of.c
··· 8 8 9 9 #include <linux/io.h> 10 10 #include <linux/clk.h> 11 + #include <linux/export.h> 11 12 #include <linux/init.h> 12 13 #include <linux/sizes.h> 13 14 #include <linux/of_fdt.h> ··· 26 25 27 26 __iomem void *rt_sysc_membase; 28 27 __iomem void *rt_memc_membase; 28 + EXPORT_SYMBOL_GPL(rt_sysc_membase); 29 29 30 30 __iomem void *plat_of_remap_node(const char *node) 31 31 {