浏览代码

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>
Geert Uytterhoeven 10 年之前
父节点
当前提交
f16ea4f0e1
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/i2c/busses/Kconfig

+ 1 - 0
drivers/i2c/busses/Kconfig

@@ -753,6 +753,7 @@ config I2C_SH7760
 
 
 config I2C_SH_MOBILE
 config I2C_SH_MOBILE
 	tristate "SuperH Mobile I2C Controller"
 	tristate "SuperH Mobile I2C Controller"
+	depends on HAS_DMA
 	depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
 	depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
 	help
 	help
 	  If you say yes to this option, support will be included for the
 	  If you say yes to this option, support will be included for the