Skip to content

Commit d0384ee

Browse files
arndbMichal Simek
authored andcommitted
drivers: soc: xilinx: fix firmware driver Kconfig dependency
The firmware driver is optional, but the power driver depends on it, which needs to be reflected in Kconfig to avoid link errors: aarch64-linux-ld: drivers/soc/xilinx/zynqmp_power.o: in function `zynqmp_pm_isr': zynqmp_power.c:(.text+0x284): undefined reference to `zynqmp_pm_invoke_fn' The firmware driver can probably be allowed for compile-testing as well, so it's best to drop the dependency on the ZYNQ platform here and allow building as long as the firmware code is built-in. Fixes: ab27264 ("drivers: soc: xilinx: Add ZynqMP PM driver") Signed-off-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michal Simek <[email protected]>
1 parent 8f3d9f3 commit d0384ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/soc/xilinx/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ config XILINX_VCU
1919

2020
config ZYNQMP_POWER
2121
bool "Enable Xilinx Zynq MPSoC Power Management driver"
22-
depends on PM && ARCH_ZYNQMP
22+
depends on PM && ZYNQMP_FIRMWARE
2323
default y
2424
select MAILBOX
2525
select ZYNQMP_IPI_MBOX
@@ -35,7 +35,7 @@ config ZYNQMP_POWER
3535
config ZYNQMP_PM_DOMAINS
3636
bool "Enable Zynq MPSoC generic PM domains"
3737
default y
38-
depends on PM && ARCH_ZYNQMP && ZYNQMP_FIRMWARE
38+
depends on PM && ZYNQMP_FIRMWARE
3939
select PM_GENERIC_DOMAINS
4040
help
4141
Say yes to enable device power management through PM domains

0 commit comments

Comments
 (0)