Skip to content

Commit

Permalink
spi: Introduce dependencise for Phytium to avoid warnings
Browse files Browse the repository at this point in the history
Fix follow warnings in Kconfig:

WARNING: unmet direct dependencies detected for SPI_PHYTIUM
  Depends on [n]: SPI [=y] && SPI_MASTER [=y] && (ARCH_PHYTIUM || COMPILE_TEST [=n])
  Selected by [m]:
  - SPI_PHYTIUM_PLAT [=m] && SPI [=y] && SPI_MASTER [=y]
  - SPI_PHYTIUM_PCI [=m] && SPI [=y] && SPI_MASTER [=y] && PCI [=y]

WARNING: unmet direct dependencies detected for SPI_PHYTIUM
  Depends on [n]: SPI [=y] && SPI_MASTER [=y] && (ARCH_PHYTIUM || COMPILE_TEST [=n])
  Selected by [m]:
  - SPI_PHYTIUM_PLAT [=m] && SPI [=y] && SPI_MASTER [=y]
  - SPI_PHYTIUM_PCI [=m] && SPI [=y] && SPI_MASTER [=y] && PCI [=y]

Signed-off-by: WangYuli <[email protected]>
  • Loading branch information
Avenger-285714 committed Aug 17, 2024
1 parent b93c517 commit 8b9c39e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/spi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,7 @@ config SPI_PHYTIUM

config SPI_PHYTIUM_PLAT
tristate "Phytium SPI controller platform support"
depends on ARCH_PHYTIUM || COMPILE_TEST
select SPI_PHYTIUM
help
This selects a platform driver for Phytium SPI controller.
Expand All @@ -789,6 +790,7 @@ config SPI_PHYTIUM_PLAT

config SPI_PHYTIUM_PCI
tristate "Phytium SPI controller PCI support"
depends on ARCH_PHYTIUM || COMPILE_TEST
depends on PCI
select SPI_PHYTIUM
help
Expand Down

0 comments on commit 8b9c39e

Please sign in to comment.