mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 21:51:40 +00:00
net: bcmgenet: remove __bcmgenet_fini_dma()
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>
This commit is contained in:
parent
ee7d8c2067
commit
9abab96d9f
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user