Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca43a0c7 authored by Zhu Yanjun's avatar Zhu Yanjun Committed by David S. Miller
Browse files

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: default avatarZhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5f109b94
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
	}
}