MIPS: Allow modules to set board_be_handler
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 5 Nov 2021 17:30:47 +0000 (10:30 -0700)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 9 Nov 2021 15:07:26 +0000 (16:07 +0100)
commit1f761b3e67e4d7058c0ff538bd3f6eecce3d9dae
tree8fdc8a933973e671b90860202c754090312dac34
parent36de23a4c5f0b61ceb4812b535422fa6c6e97447
MIPS: Allow modules to set board_be_handler

After making the brcmstb_gisb driver modular with 707a4cdf86e5 ("bus:
brcmstb_gisb: Allow building as module") Guenter reported that mips
allmodconfig failed to link because board_be_handler was referenced.

Thomas indicated that if we were to continue making the brcmstb_gisb
driver modular for MIPS we would need to introduce a function that
allows setting the board_be_handler and export that function towards
modules.

This is what is being done here: board_be_handler is made static and is
now settable with a mips_set_be_handler() function which is exported.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Suggested-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Fixes: 707a4cdf86e5 ("bus: brcmstb_gisb: Allow building as module")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
12 files changed:
arch/mips/dec/setup.c
arch/mips/include/asm/traps.h
arch/mips/kernel/traps.c
arch/mips/sgi-ip22/ip22-berr.c
arch/mips/sgi-ip22/ip28-berr.c
arch/mips/sgi-ip27/ip27-berr.c
arch/mips/sgi-ip32/ip32-berr.c
arch/mips/sibyte/swarm/setup.c
arch/mips/txx9/generic/setup_tx4927.c
arch/mips/txx9/generic/setup_tx4938.c
arch/mips/txx9/generic/setup_tx4939.c
drivers/bus/brcmstb_gisb.c