diff options
author | Zhu Yanjun <yanjun.zhu@oracle.com> | 2017-11-20 04:21:08 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-24 21:08:53 +0100 |
commit | ca43a0c73d1d32e2c24698b1b9044557a0b197d4 (patch) | |
tree | 1d13ec95ab3fabdc8fa0c58a0063bcb99c88aee7 /drivers/net/ethernet/nvidia | |
parent | Merge tag 'rxrpc-fixes-20171124' of git://git.kernel.org/pub/scm/linux/kernel... (diff) | |
download | linux-ca43a0c73d1d32e2c24698b1b9044557a0b197d4.tar.xz linux-ca43a0c73d1d32e2c24698b1b9044557a0b197d4.zip |
forcedeth: replace pci_unmap_page with dma_unmap_page
The function pci_unmap_page is obsolete. So it is replaced with
the function dma_unmap_page.
CC: Srinivas Eeda <srinivas.eeda@oracle.com>
CC: Joe Jin <joe.jin@oracle.com>
CC: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/nvidia')
-rw-r--r-- | drivers/net/ethernet/nvidia/forcedeth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/nvidia/forcedeth.c b/drivers/net/ethernet/nvidia/forcedeth.c index ac8439ceea10..481876b5424c 100644 --- a/drivers/net/ethernet/nvidia/forcedeth.c +++ b/drivers/net/ethernet/nvidia/forcedeth.c @@ -1986,9 +1986,9 @@ static void nv_unmap_txskb(struct fe_priv *np, struct nv_skb_map *tx_skb) tx_skb->dma_len, DMA_TO_DEVICE); else - pci_unmap_page(np->pci_dev, tx_skb->dma, + dma_unmap_page(&np->pci_dev->dev, tx_skb->dma, tx_skb->dma_len, - PCI_DMA_TODEVICE); + DMA_TO_DEVICE); tx_skb->dma = 0; } } |