netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] can: CAN_MCP251X should depend on HAS_DMA
@ 2009-12-13 19:11 Geert Uytterhoeven
  2009-12-13 20:47 ` Wolfgang Grandegger
  2009-12-14  3:58 ` David Miller
  0 siblings, 2 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2009-12-13 19:11 UTC (permalink / raw)
  To: Christian Pellegrin, Wolfgang Grandegger, David S. Miller,
	Urs Thuermann, Oliver 
  Cc: netdev, Linux Kernel Development

When building for Sun 3:

drivers/net/can/mcp251x.c:1074: undefined reference to `dma_free_coherent'
drivers/net/can/mcp251x.c:976: undefined reference to `dma_alloc_coherent'
drivers/net/can/mcp251x.c:1050: undefined reference to `dma_free_coherent'

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/net/can/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/can/Kconfig b/drivers/net/can/Kconfig
index 8c485aa..05b7517 100644
--- a/drivers/net/can/Kconfig
+++ b/drivers/net/can/Kconfig
@@ -50,7 +50,7 @@ config CAN_TI_HECC
 
 config CAN_MCP251X
 	tristate "Microchip MCP251x SPI CAN controllers"
-	depends on CAN_DEV && SPI
+	depends on CAN_DEV && SPI && HAS_DMA
 	---help---
 	  Driver for the Microchip MCP251x SPI CAN controllers.
 
-- 
1.6.0.4

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

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

end of thread, other threads:[~2009-12-14  8:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-13 19:11 [PATCH] can: CAN_MCP251X should depend on HAS_DMA Geert Uytterhoeven
2009-12-13 20:47 ` Wolfgang Grandegger
2009-12-14  1:40   ` David Miller
2009-12-14  7:34     ` Wolfgang Grandegger
2009-12-14  8:14       ` christian pellegrin
2009-12-14  3:58 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).