projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f109b9
)
forcedeth: replace pci_unmap_page with dma_unmap_page
author
Zhu Yanjun
<
[email protected]
>
Mon, 20 Nov 2017 03:21:08 +0000
(22:21 -0500)
committer
David S. Miller
<
[email protected]
>
Fri, 24 Nov 2017 20:08:53 +0000
(
05:08
+0900)
The function pci_unmap_page is obsolete. So it is replaced with
the function dma_unmap_page.
CC: Srinivas Eeda <
[email protected]
>
CC: Joe Jin <
[email protected]
>
CC: Junxiao Bi <
[email protected]
>
Signed-off-by: Zhu Yanjun <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/nvidia/forcedeth.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/nvidia/forcedeth.c
b/drivers/net/ethernet/nvidia/forcedeth.c
index ac8439ceea10affdf7ead137386145cc7cc514d4..481876b5424c9567b6129951aa47f34ed0bee154 100644
(file)
--- 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_TO
DEVICE);
+
DMA_TO_
DEVICE);
tx_skb->dma = 0;
}
}