spi: Stop selecting MTD_SPI_NOR for SPI_HISI_SFC_V3XX
authorJohn Garry <john.garry@huawei.com>
Wed, 11 Mar 2020 17:35:15 +0000 (01:35 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 11 Mar 2020 18:35:21 +0000 (18:35 +0000)
commitcaef2df1137adcea48b0902f310f4639b846e3a1
tree6c6c8b9af2836243f1e49ecb0183cbab6e52187d
parent22ee9de1ecfb4459a9b3a959994f6ccb4a3827a4
spi: Stop selecting MTD_SPI_NOR for SPI_HISI_SFC_V3XX

By selecting MTD_SPI_NOR for SPI_HISI_SFC_V3XX, we may introduce unmet
dependencies:

WARNING: unmet direct dependencies detected for MTD_SPI_NOR
  Depends on [m]: MTD [=m] && SPI_MASTER [=y]
  Selected by [y]:
  - SPI_HISI_SFC_V3XX [=y] && SPI [=y] && SPI_MASTER [=y] && (ARM64 && ACPI [=y] || COMPILE_TEST [=y]) && HAS_IOMEM [=y]

Since MTD_SPI_NOR is only selected by SPI_HISI_SFC_V3XX for practical
reasons - slave devices use the spi-nor driver, enabled by MTD_SPI_NOR -
just drop it.

Signed-off-by: John Garry <john.garry@huawei.com>
Link: https://lore.kernel.org/r/1583948115-239907-1-git-send-email-john.garry@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/Kconfig