diff options
author | Dmitry Kravkov <dmitry@broadcom.com> | 2010-10-05 23:30:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-10-06 17:10:39 -0400 |
commit | 4bca60f44b4adca3197f61294956edda5bf9acea (patch) | |
tree | c31543b88336c4c0277fe416000a921b55ef0067 /drivers/net/bnx2x/bnx2x_cmn.h | |
parent | c518cd1c7aca2e2a65edcf4fa5ce4160d59878c2 (diff) |
bnx2x: use proper constants for dma_unmap* calls
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x/bnx2x_cmn.h')
-rw-r--r-- | drivers/net/bnx2x/bnx2x_cmn.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bnx2x/bnx2x_cmn.h b/drivers/net/bnx2x/bnx2x_cmn.h index 73ed5a63761f..f08a42ad6b47 100644 --- a/drivers/net/bnx2x/bnx2x_cmn.h +++ b/drivers/net/bnx2x/bnx2x_cmn.h | |||
@@ -597,7 +597,7 @@ static inline void bnx2x_free_rx_sge(struct bnx2x *bp, | |||
597 | return; | 597 | return; |
598 | 598 | ||
599 | dma_unmap_page(&bp->pdev->dev, dma_unmap_addr(sw_buf, mapping), | 599 | dma_unmap_page(&bp->pdev->dev, dma_unmap_addr(sw_buf, mapping), |
600 | SGE_PAGE_SIZE*PAGES_PER_SGE, PCI_DMA_FROMDEVICE); | 600 | SGE_PAGE_SIZE*PAGES_PER_SGE, DMA_FROM_DEVICE); |
601 | __free_pages(page, PAGES_PER_SGE_SHIFT); | 601 | __free_pages(page, PAGES_PER_SGE_SHIFT); |
602 | 602 | ||
603 | sw_buf->page = NULL; | 603 | sw_buf->page = NULL; |