aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/bcm43xx/bcm43xx_dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/bcm43xx/bcm43xx_dma.c')
-rw-r--r--drivers/net/wireless/bcm43xx/bcm43xx_dma.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/bcm43xx/bcm43xx_dma.c b/drivers/net/wireless/bcm43xx/bcm43xx_dma.c
index 7ed368a587f3..9c64438b767f 100644
--- a/drivers/net/wireless/bcm43xx/bcm43xx_dma.c
+++ b/drivers/net/wireless/bcm43xx/bcm43xx_dma.c
@@ -531,7 +531,11 @@ static void bcm43xx_destroy_dmaring(struct bcm43xx_dmaring *ring)
531 531
532void bcm43xx_dma_free(struct bcm43xx_private *bcm) 532void bcm43xx_dma_free(struct bcm43xx_private *bcm)
533{ 533{
534 struct bcm43xx_dma *dma = bcm43xx_current_dma(bcm); 534 struct bcm43xx_dma *dma;
535
536 if (bcm43xx_using_pio(bcm))
537 return;
538 dma = bcm43xx_current_dma(bcm);
535 539
536 bcm43xx_destroy_dmaring(dma->rx_ring1); 540 bcm43xx_destroy_dmaring(dma->rx_ring1);
537 dma->rx_ring1 = NULL; 541 dma->rx_ring1 = NULL;