i2c: sh_mobile: I2C_SH_MOBILE should depend on HAS_DMA
authorGeert Uytterhoeven <geert@linux-m68k.org>
Mon, 15 Dec 2014 13:37:04 +0000 (14:37 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 17 Dec 2014 18:26:09 +0000 (19:26 +0100)
commitf16ea4f0e1800a4449ffb2ddc0c01f4c4a5b504e
tree13ad8b6ec1d0a7729fe8f1e29beece6731cbfd2b
parent55f5f9862a31e2ac9defea5f30e413d331d1f932
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>
drivers/i2c/busses/Kconfig