diff options
| author | Geert Uytterhoeven <geert@linux-m68k.org> | 2016-05-22 03:38:35 -0400 |
|---|---|---|
| committer | Wolfram Sang <wsa@the-dreams.de> | 2016-05-26 14:51:59 -0400 |
| commit | 79439d8308bb12b4bdb2ca42fba2b71f1600b88b (patch) | |
| tree | 08e86ab82de81da82dee10aa4660ee281f0e3f95 | |
| parent | 6aabf9d01facdcb6835272995b003956a9dabea0 (diff) | |
i2c: rcar: should depend on HAS_DMA
If NO_DMA=y:
drivers/built-in.o: In function `rcar_i2c_dma_unmap':
i2c-rcar.c:(.text+0x6f06c6): undefined reference to `bad_dma_ops'
drivers/built-in.o: In function `rcar_i2c_dma':
i2c-rcar.c:(.text+0x6f07e2): undefined reference to `bad_dma_ops'
i2c-rcar.c:(.text+0x6f0838): undefined reference to `bad_dma_ops'
Add a dependency on HAS_DMA to fix this.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
| -rw-r--r-- | drivers/i2c/busses/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index 2dd40ddf04de..8ffb0d7015b0 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig | |||
| @@ -985,6 +985,7 @@ config I2C_XLP9XX | |||
| 985 | 985 | ||
| 986 | config I2C_RCAR | 986 | config I2C_RCAR |
| 987 | tristate "Renesas R-Car I2C Controller" | 987 | tristate "Renesas R-Car I2C Controller" |
| 988 | depends on HAS_DMA | ||
| 988 | depends on ARCH_RENESAS || COMPILE_TEST | 989 | depends on ARCH_RENESAS || COMPILE_TEST |
| 989 | select I2C_SLAVE | 990 | select I2C_SLAVE |
| 990 | help | 991 | help |
