]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: soc: xilinx: fix firmware driver Kconfig dependency
authorArnd Bergmann <arnd@arndb.de>
Wed, 8 Apr 2020 15:52:15 +0000 (17:52 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 15 Apr 2020 06:15:55 +0000 (08:15 +0200)
commit078bccb1b53b73de3493e6adfbe7127b241b858e
tree6210ee42e77d483571eb4bd33edafa9e22c1d37c
parent0e6c92ce1d170795a396f8108369eb2c8412797f
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: c8e5c25c65f3 ("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>
drivers/soc/xilinx/Kconfig