From: Geert Uytterhoeven Date: Mon, 15 Dec 2014 13:37:04 +0000 (+0100) Subject: i2c: sh_mobile: I2C_SH_MOBILE should depend on HAS_DMA X-Git-Tag: v4.9.8~5087^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f16ea4f0e1800a4449ffb2ddc0c01f4c4a5b504e;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: Wolfram Sang --- diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index c1351d9..f08dd20 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig @@ -753,6 +753,7 @@ config I2C_SH7760 config I2C_SH_MOBILE tristate "SuperH Mobile I2C Controller" + depends on HAS_DMA depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST help If you say yes to this option, support will be included for the