mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] i2c: sh_mobile: I2C_SH_MOBILE should depend on HAS_DMA
@ 2014-12-15 13:37 Geert Uytterhoeven
  2014-12-17  6:58 ` Wolfram Sang
  2014-12-17 18:29 ` Wolfram Sang
  0 siblings, 2 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2014-12-15 13:37 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: linux-i2c, linux-sh, linux-kernel, Geert Uytterhoeven

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>
---
 drivers/i2c/busses/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index c1351d9fb35bbc8d..f08dd20f625c184d 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
-- 
1.9.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-12-17 18:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-15 13:37 [PATCH] i2c: sh_mobile: I2C_SH_MOBILE should depend on HAS_DMA Geert Uytterhoeven
2014-12-17  6:58 ` Wolfram Sang
2014-12-17  8:04   ` Geert Uytterhoeven
2014-12-17  8:39     ` Wolfram Sang
2014-12-17  8:47       ` Geert Uytterhoeven
2014-12-17  8:59         ` Wolfram Sang
2014-12-17 18:29 ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®