Skip to content

Commit f16ea4f

Browse files
geertuWolfram Sang
authored andcommitted
i2c: sh_mobile: I2C_SH_MOBILE should depend on HAS_DMA
If NO_DMA=y: drivers/built-in.o: In function `sh_mobile_i2c_dma_unmap': i2c-sh_mobile.c:(.text+0x60de42): undefined reference to `dma_unmap_single' drivers/built-in.o: In function `sh_mobile_i2c_xfer_dma': i2c-sh_mobile.c:(.text+0x60df22): undefined reference to `dma_map_single' i2c-sh_mobile.c:(.text+0x60df2e): undefined reference to `dma_mapping_error' Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
1 parent 55f5f98 commit f16ea4f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/i2c/busses/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,7 @@ config I2C_SH7760
753753

754754
config I2C_SH_MOBILE
755755
tristate "SuperH Mobile I2C Controller"
756+
depends on HAS_DMA
756757
depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
757758
help
758759
If you say yes to this option, support will be included for the

0 commit comments

Comments
 (0)