Skip to content

Commit 6a47d6e

Browse files
arndbmfischer
authored andcommitted
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: 4db8180 ("firmware: xilinx: Remove eemi ops for fpga related APIs") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Moritz Fischer <[email protected]>
1 parent 3d77e6a commit 6a47d6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/fpga/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ config FPGA_DFL_PCI
208208

209209
config FPGA_MGR_ZYNQMP_FPGA
210210
tristate "Xilinx ZynqMP FPGA"
211-
depends on ARCH_ZYNQMP || COMPILE_TEST
211+
depends on ZYNQMP_FIRMWARE || (!ZYNQMP_FIRMWARE && COMPILE_TEST)
212212
help
213213
FPGA manager driver support for Xilinx ZynqMP FPGAs.
214214
This driver uses the processor configuration port(PCAP)

0 commit comments

Comments
 (0)