]> git.baikalelectronics.ru Git - kernel.git/commit
fpga: zynqmp: fix modular build
authorArnd Bergmann <arnd@arndb.de>
Tue, 5 May 2020 14:00:11 +0000 (16:00 +0200)
committerMoritz Fischer <mdf@kernel.org>
Tue, 9 Jun 2020 15:27:01 +0000 (08:27 -0700)
commit6f8c208de3741743a6640967811e993e6ed034b1
tree5779ccd4065b6309436d14e3853cb77514a436bc
parent1d9eba4def0400011c61f60ce3444718b44c8bbf
fpga: zynqmp: fix modular build

Two symbols need to be exported to allow the zynqmp-fpga module
to get loaded dynamically:

ERROR: modpost: "zynqmp_pm_fpga_load" [drivers/fpga/zynqmp-fpga.ko] undefined!
ERROR: modpost: "zynqmp_pm_fpga_get_status" [drivers/fpga/zynqmp-fpga.ko] undefined!

To ensure this is done correctly, also fix the Kconfig dependency
to only allow building the fpga driver when the firmware driver is
either disabled, or when it is reachable. With that, the dependency
on the SoC itself can be removed, and there are no surprises when
the fpga driver is built-in but the firmware a module.

Fixes: 7597b453a3f1 ("firmware: xilinx: Remove eemi ops for fpga related APIs")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
drivers/fpga/Kconfig