Skip to content

Commit 21825ff

Browse files
purna-mandalbroonie
authored andcommitted
spi: pic32-sqi: Fix linker error, undefined reference to `bad_dma_ops'.
Even if DMA support is disabled code using DMA mapping APIs compiles fine, but fails in linking. ------- drivers/built-in.o: In function `ring_desc_ring_free': spi-pic32-sqi.c:(.text+0x2cfbe0): undefined reference to `bad_dma_ops' spi-pic32-sqi.c:(.text+0x2cfbe4): undefined reference to `bad_dma_ops' drivers/built-in.o: In function `pic32_sqi_probe': spi-pic32-sqi.c:(.text+0x2cfe48): undefined reference to `bad_dma_ops' spi-pic32-sqi.c:(.text+0x2cfeb0): undefined reference to `bad_dma_ops' spi-pic32-sqi.c:(.text+0x2cff38): undefined reference to `bad_dma_ops' -------- Correct dependency by adding 'depends on HAS_DMA' in Kconfig. Signed-off-by: Purna Chandra Mandal <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 191ec11 commit 21825ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/spi/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ config SPI_PIC32
445445
config SPI_PIC32_SQI
446446
tristate "Microchip PIC32 Quad SPI driver"
447447
depends on MACH_PIC32 || COMPILE_TEST
448+
depends on HAS_DMA
448449
help
449450
SPI driver for PIC32 Quad SPI controller.
450451

0 commit comments

Comments
 (0)