can: CAN_MCP251X should depend on HAS_DMA
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 13 Dec 2009 09:11:06 +0000 (09:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Dec 2009 03:56:36 +0000 (19:56 -0800)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/Kconfig

index 8c485aad1b94007ca98ff8cc6db39ba2f19f44f8..05b751719bd5dd4634b7a1234291cc764fbd82ec 100644 (file)
@@ -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.