sh_eth: SH_ETH should depend on HAS_DMA
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 10 Jul 2013 21:03:34 +0000 (23:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Jul 2013 02:47:14 +0000 (19:47 -0700)
If NO_DMA=y:

drivers/built-in.o: In function `sh_eth_free_dma_buffer':
drivers/net/ethernet/renesas/sh_eth.c:1103: undefined reference to `dma_free_coherent'
drivers/net/ethernet/renesas/sh_eth.c:1110: undefined reference to `dma_free_coherent'
drivers/built-in.o: In function `sh_eth_ring_init':
drivers/net/ethernet/renesas/sh_eth.c:1065: undefined reference to `dma_alloc_coherent'
drivers/net/ethernet/renesas/sh_eth.c:1086: undefined reference to `dma_free_coherent'
drivers/built-in.o: In function `sh_eth_ring_format':
drivers/net/ethernet/renesas/sh_eth.c:988: undefined reference to `dma_map_single'
drivers/built-in.o: In function `sh_eth_txfree':
drivers/net/ethernet/renesas/sh_eth.c:1220: undefined reference to `dma_unmap_single'
drivers/built-in.o: In function `sh_eth_rx':
drivers/net/ethernet/renesas/sh_eth.c:1323: undefined reference to `dma_map_single'
drivers/built-in.o: In function `sh_eth_start_xmit':
drivers/net/ethernet/renesas/sh_eth.c:1954: undefined reference to `dma_map_single'

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/Kconfig

index 544514e66187e3300320114c7e35826fbc8dab67..19a8a045e07728868cbe3a6e08b841865068e3e3 100644 (file)
@@ -4,6 +4,7 @@
 
 config SH_ETH
        tristate "Renesas SuperH Ethernet support"
+       depends on HAS_DMA
        select CRC32
        select MII
        select MDIO_BITBANG