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

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: ab272643d723 ("drivers: soc: xilinx: Add ZynqMP PM driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20200408155224.2070880-1-arnd@arndb.de
Signed-off-by: Michal Simek <michal.simek@xilinx.com>

authored by

Arnd Bergmann and committed by
Michal Simek
d0384eed 8f3d9f35

+2 -2
+2 -2
drivers/soc/xilinx/Kconfig
··· 19 19 20 20 config ZYNQMP_POWER 21 21 bool "Enable Xilinx Zynq MPSoC Power Management driver" 22 - depends on PM && ARCH_ZYNQMP 22 + depends on PM && ZYNQMP_FIRMWARE 23 23 default y 24 24 select MAILBOX 25 25 select ZYNQMP_IPI_MBOX ··· 35 35 config ZYNQMP_PM_DOMAINS 36 36 bool "Enable Zynq MPSoC generic PM domains" 37 37 default y 38 - depends on PM && ARCH_ZYNQMP && ZYNQMP_FIRMWARE 38 + depends on PM && ZYNQMP_FIRMWARE 39 39 select PM_GENERIC_DOMAINS 40 40 help 41 41 Say yes to enable device power management through PM domains