]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
ethernet: synopsys: SYNOPSYS_DWC_ETH_QOS should depend on HAS_DMA
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 4 Sep 2015 12:44:12 +0000 (14:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Sep 2015 02:48:53 +0000 (19:48 -0700)
If NO_DMA=y:

    ERROR: "dma_alloc_coherent" [drivers/net/ethernet/synopsys/dwc_eth_qos.ko] undefined!
    ERROR: "dma_free_coherent" [drivers/net/ethernet/synopsys/dwc_eth_qos.ko] undefined!
    ERROR: "dma_unmap_single" [drivers/net/ethernet/synopsys/dwc_eth_qos.ko] undefined!
    ERROR: "dma_map_page" [drivers/net/ethernet/synopsys/dwc_eth_qos.ko] undefined!
    ERROR: "dma_mapping_error" [drivers/net/ethernet/synopsys/dwc_eth_qos.ko] undefined!
    ERROR: "dma_map_single" [drivers/net/ethernet/synopsys/dwc_eth_qos.ko] undefined!

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Lars Persson <larper@axis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/synopsys/Kconfig

index a8f315106742d9b1f5c06fbfaa90520ffa8323ab..8276ee5a7d541b2e27bb1e9a70ee74532e8a155e 100644 (file)
@@ -20,7 +20,7 @@ config SYNOPSYS_DWC_ETH_QOS
        select PHYLIB
        select CRC32
        select MII
-       depends on OF
+       depends on OF && HAS_DMA
        ---help---
          This driver supports the DWC Ethernet QoS from Synopsys