Skip to content

Commit ecb3a67

Browse files
fancerbroonie
authored andcommitted
spi: dw: Add DW SPI DMA/PCI/MMIO dependency on the DW SPI core
Seeing all of the DW SPI driver components like DW SPI DMA/PCI/MMIO depend on the DW SPI core code it's better to use the if-endif conditional kernel config statement to signify that common dependency. Co-developed-by: Georgy Vlasov <[email protected]> Co-developed-by: Ramil Zaripov <[email protected]> Signed-off-by: Georgy Vlasov <[email protected]> Signed-off-by: Ramil Zaripov <[email protected]> Signed-off-by: Serge Semin <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Cc: Alexey Malahov <[email protected]> Cc: Thomas Bogendoerfer <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Feng Tang <[email protected]> Cc: Rob Herring <[email protected]> Cc: [email protected] Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 06cfadb commit ecb3a67

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

drivers/spi/Kconfig

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,17 +226,20 @@ config SPI_DESIGNWARE
226226
help
227227
general driver for SPI controller core from DesignWare
228228

229+
if SPI_DESIGNWARE
230+
229231
config SPI_DW_DMA
230232
bool "DMA support for DW SPI controller"
231-
depends on SPI_DESIGNWARE
232233

233234
config SPI_DW_PCI
234235
tristate "PCI interface driver for DW SPI core"
235-
depends on SPI_DESIGNWARE && PCI
236+
depends on PCI
236237

237238
config SPI_DW_MMIO
238239
tristate "Memory-mapped io interface driver for DW SPI core"
239-
depends on SPI_DESIGNWARE
240+
depends on HAS_IOMEM
241+
242+
endif
240243

241244
config SPI_DLN2
242245
tristate "Diolan DLN-2 USB SPI adapter"

0 commit comments

Comments
 (0)