[PATCH 53/75] sunhme: convert to SKB paged frag API.

Ian Campbell ian.campbell at citrix.com
Fri Aug 19 23:27:25 EST 2011


Signed-off-by: Ian Campbell <ian.campbell at citrix.com>
Cc: Grant Likely <grant.likely at secretlab.ca>
Cc: "David S. Miller" <davem at davemloft.net>
Cc: Tobias Klauser <tklauser at distanz.ch>
Cc: David Decotigny <decot at google.com>
Cc: "Michał Mirosław" <mirq-linux at rere.qmqm.pl>
Cc: netdev at vger.kernel.org
Cc: linux-kernel at vger.kernel.org
Cc: devicetree-discuss at lists.ozlabs.org
---
 drivers/net/sunhme.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c
index 856e05b..0f897a0 100644
--- a/drivers/net/sunhme.c
+++ b/drivers/net/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;
-- 
1.7.2.5



More information about the devicetree-discuss mailing list