Commit 0f8b6cea authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by David S. Miller

net: via: VIA_RHINE and VIA_VELOCITY should depend on HAS_DMA

If NO_DMA=y:

    ERROR: "dma_sync_single_for_cpu" [drivers/net/ethernet/via/via-rhine.ko] undefined!
    ERROR: "dma_set_mask" [drivers/net/ethernet/via/via-rhine.ko] undefined!
    ERROR: "dma_mapping_error" [drivers/net/ethernet/via/via-rhine.ko] undefined!
    ERROR: "dma_map_single" [drivers/net/ethernet/via/via-rhine.ko] undefined!
    ERROR: "dma_alloc_coherent" [drivers/net/ethernet/via/via-rhine.ko] undefined!
    ERROR: "dma_free_coherent" [drivers/net/ethernet/via/via-rhine.ko] undefined!
    ERROR: "dma_unmap_single" [drivers/net/ethernet/via/via-rhine.ko] undefined!
    ERROR: "dma_map_page" [drivers/net/ethernet/via/via-velocity.ko] undefined!
    ERROR: "dma_sync_single_for_cpu" [drivers/net/ethernet/via/via-velocity.ko] undefined!
    ERROR: "dma_free_coherent" [drivers/net/ethernet/via/via-velocity.ko] undefined!
    ERROR: "dma_unmap_single" [drivers/net/ethernet/via/via-velocity.ko] undefined!
    ERROR: "dma_map_single" [drivers/net/ethernet/via/via-velocity.ko] undefined!
    ERROR: "dma_alloc_coherent" [drivers/net/ethernet/via/via-velocity.ko] undefined!

Before, the symbols depended implicitly on HAS_DMA through PCI or
USE_OF.  Add explicit dependencies on HAS_DMA to fix this.

Fixes: b7d3282a ("net: via/Kconfig: replace USE_OF with OF_???")
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ebc03239
...@@ -18,6 +18,7 @@ if NET_VENDOR_VIA ...@@ -18,6 +18,7 @@ if NET_VENDOR_VIA
config VIA_RHINE config VIA_RHINE
tristate "VIA Rhine support" tristate "VIA Rhine support"
depends on (PCI || OF_IRQ) depends on (PCI || OF_IRQ)
depends on HAS_DMA
select CRC32 select CRC32
select MII select MII
---help--- ---help---
...@@ -42,6 +43,7 @@ config VIA_RHINE_MMIO ...@@ -42,6 +43,7 @@ config VIA_RHINE_MMIO
config VIA_VELOCITY config VIA_VELOCITY
tristate "VIA Velocity support" tristate "VIA Velocity support"
depends on (PCI || (OF_ADDRESS && OF_IRQ)) depends on (PCI || (OF_ADDRESS && OF_IRQ))
depends on HAS_DMA
select CRC32 select CRC32
select CRC_CCITT select CRC_CCITT
select MII select MII
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment