]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: ETHOC should depend on HAS_DMA
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 20 Nov 2009 09:19:10 +0000 (09:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Nov 2009 21:53:33 +0000 (13:53 -0800)
When building for Sun 3:

drivers/net/ethoc.c:1091: undefined reference to `dma_free_coherent'
drivers/built-in.o: In function `ethoc_probe':
drivers/net/ethoc.c:965: undefined reference to `dma_alloc_coherent'
drivers/net/ethoc.c:1063: 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/Kconfig

index e19ca4bb75102448879208df00d90aece5b8503b..b2f71f79baaf1f5981aa539f8d96dbb2af627c50 100644 (file)
@@ -975,7 +975,7 @@ config ENC28J60_WRITEVERIFY
 
 config ETHOC
        tristate "OpenCores 10/100 Mbps Ethernet MAC support"
-       depends on NET_ETHERNET && HAS_IOMEM
+       depends on NET_ETHERNET && HAS_IOMEM && HAS_DMA
        select MII
        select PHYLIB
        select CRC32