net: bcmgenet: remove __bcmgenet_fini_dma()
authorPetri Gynther <pgynther@google.com>
Mon, 30 Mar 2015 07:29:01 +0000 (00:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2015 18:15:01 +0000 (14:15 -0400)
bcmgenet_fini_dma() is the only caller of __bcmgenet_fini_dma().
Move __bcmgenet_fini_dma() code inside bcmgenet_fini_dma().

Signed-off-by: Petri Gynther <pgynther@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c

index 620021e8365a77df6328185b95cb4a19aaeb4851..546d8623d8eb3948085fa83e71b179484bf727ea 100644 (file)
@@ -2173,10 +2173,13 @@ static int bcmgenet_dma_teardown(struct bcmgenet_priv *priv)
        return ret;
 }
 
-static void __bcmgenet_fini_dma(struct bcmgenet_priv *priv)
+static void bcmgenet_fini_dma(struct bcmgenet_priv *priv)
 {
        int i;
 
+       bcmgenet_fini_rx_napi(priv);
+       bcmgenet_fini_tx_napi(priv);
+
        /* disable DMA */
        bcmgenet_dma_teardown(priv);
 
@@ -2192,14 +2195,6 @@ static void __bcmgenet_fini_dma(struct bcmgenet_priv *priv)
        kfree(priv->tx_cbs);
 }
 
-static void bcmgenet_fini_dma(struct bcmgenet_priv *priv)
-{
-       bcmgenet_fini_rx_napi(priv);
-       bcmgenet_fini_tx_napi(priv);
-
-       __bcmgenet_fini_dma(priv);
-}
-
 /* init_edma: Initialize DMA control register */
 static int bcmgenet_init_dma(struct bcmgenet_priv *priv)
 {