Signed-off-by: Ian Campbell <[email protected]>
Cc: Grant Likely <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Jiri Kosina <[email protected]>
Cc: Joe Perches <[email protected]>
Cc: David Decotigny <[email protected]>
Cc: "Michał Mirosław" <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
---
 drivers/net/sungem.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c
index ade35dd..39189bf 100644
--- a/drivers/net/sungem.c
+++ b/drivers/net/sungem.c
@@ -1071,10 +1071,8 @@ static netdev_tx_t gem_start_xmit(struct sk_buff *skb,
                        u64 this_ctrl;
 
                        len = this_frag->size;
-                       mapping = pci_map_page(gp->pdev,
-                                              this_frag->page,
-                                              this_frag->page_offset,
-                                              len, PCI_DMA_TODEVICE);
+                       mapping = skb_frag_dma_map(&gp->pdev->dev, this_frag,
+                                                  0, len, PCI_DMA_TODEVICE);
                        this_ctrl = ctrl;
                        if (frag == skb_shinfo(skb)->nr_frags - 1)
                                this_ctrl |= TXDCTRL_EOF;
-- 
1.7.2.5

_______________________________________________
devicetree-discuss mailing list
[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss

Reply via email to