]> git.baikalelectronics.ru Git - kernel.git/commit
spi: dw_bt1: fix MUX_MMIO dependencies
authorArnd Bergmann <arnd@arndb.de>
Mon, 30 Jan 2023 14:01:40 +0000 (15:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:18 +0000 (09:33 +0100)
commit7892be7bf03786ede1be48ccf5222b368ff28eee
treee17604ce1d40b30a2e20d6fca99697c8a8af83da
parentc8fdb5aaa1d48090f5dd49d7b6dfeae2037bf5a7
spi: dw_bt1: fix MUX_MMIO dependencies

[ Upstream commit 46127ad64d111df98928b4a035a04bb23f267954 ]

Selecting a symbol with additional dependencies requires
adding the same dependency here:

WARNING: unmet direct dependencies detected for MUX_MMIO
  Depends on [n]: MULTIPLEXER [=y] && OF [=n]
  Selected by [y]:
  - SPI_DW_BT1 [=y] && SPI [=y] && SPI_MASTER [=y] && SPI_DESIGNWARE [=y] && (MIPS_BAIKAL_T1 || COMPILE_TEST [=y])

Drop the 'select' here to avoid the problem. Anyone using
the dw-bt1 SPI driver should make sure they include the
mux driver as well now.

Fixes: 94af03963acb ("spi: dw-bt1: Fix undefined devm_mux_control_get symbol")
Fixes: c0c0225b1c46 ("spi: dw: Add Baikal-T1 SPI Controller glue driver")
Link: https://lore.kernel.org/all/20221218192523.c6vnfo26ua6xqf26@mobilestation/
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Serge Semin <fancer.lancer@gmail.com>
Link: https://lore.kernel.org/r/20230130140156.3620863-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/Kconfig