summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-efm32.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2014-05-02 06:29:34 +0200
committerMark Brown <broonie@linaro.org>2014-05-02 10:08:40 -0700
commit2de440f59ca9615c92820d165d5e59756e54026b (patch)
tree6f0129e27bda85886806416b473386584fa87696 /drivers/spi/spi-efm32.c
parent83596fbeb5d28e8cb8878786133945d4dc7c0090 (diff)
spi: core: Protect DMA code by #ifdef CONFIG_HAS_DMA
If NO_DMA=y: drivers/built-in.o: In function `spi_map_buf': spi.c:(.text+0x21bc60): undefined reference to `dma_map_sg' drivers/built-in.o: In function `spi_unmap_buf.isra.33': spi.c:(.text+0x21c32e): undefined reference to `dma_unmap_sg' make[3]: *** [vmlinux] Error 1 Protect the DMA code by #ifdef CONFIG_HAS_DMA to fix this: - Extract __spi_map_msg() from spi_map_msg(), - Provide dummy definitions of __spi_map_msg() and spi_unmap_msg() if !CONFIG_HAS_DMA. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-efm32.c')
0 files changed, 0 insertions, 0 deletions