summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/sun/sunhme.c
diff options
context:
space:
mode:
authorIan Campbell <Ian.Campbell@citrix.com>2011-09-22 01:53:22 +0400
committerDavid S. Miller <davem@davemloft.net>2011-09-23 00:04:16 +0400
commit4bc683472bda1e224e652104686231057647d2da (patch)
treecd7fdcb6642e3e057b66645780b0ab7b10222197 /drivers/net/ethernet/sun/sunhme.c
parent4fee78b49ca0a3b7ad8fd71ba0b7faed746875f1 (diff)
downloadlinux-4bc683472bda1e224e652104686231057647d2da.tar.xz
sunhme: convert to SKB paged frag API.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sun/sunhme.c')
-rw-r--r--drivers/net/ethernet/sun/sunhme.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/ethernet/sun/sunhme.c b/drivers/net/ethernet/sun/sunhme.c
index 42f866ef81e1..869d47be54b4 100644
--- a/drivers/net/ethernet/sun/sunhme.c
+++ b/drivers/net/ethernet/sun/sunhme.c
@@ -2309,9 +2309,8 @@ static netdev_tx_t happy_meal_start_xmit(struct sk_buff *skb,
u32 len, mapping, this_txflags;
len = this_frag->size;
- mapping = dma_map_page(hp->dma_dev, this_frag->page,
- this_frag->page_offset, len,
- DMA_TO_DEVICE);
+ mapping = skb_frag_dma_map(hp->dma_dev, this_frag,
+ 0, len, DMA_TO_DEVICE);
this_txflags = tx_flags;
if (frag == skb_shinfo(skb)->nr_frags - 1)
this_txflags |= TXFLAG_EOP;