i2c: I2C_MT65XX should depend on HAS_DMA
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 26 Jun 2015 12:12:10 +0000 (14:12 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 9 Jul 2015 20:10:20 +0000 (22:10 +0200)
commitfc0a1f035cf15f704f4092da294963c57e94c1c0
treefae534ac44479badcece43446bf0697e405fdbf0
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754
i2c: I2C_MT65XX should depend on HAS_DMA

If NO_DMA=y:

    ERROR: "dma_unmap_single" [drivers/i2c/busses/i2c-mt65xx.ko] undefined!
    ERROR: "dma_mapping_error" [drivers/i2c/busses/i2c-mt65xx.ko] undefined!
    ERROR: "dma_map_single" [drivers/i2c/busses/i2c-mt65xx.ko] undefined!

Add a dependency on HAS_DMA to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/Kconfig