From: Ian Campbell Date: Wed, 21 Sep 2011 21:53:24 +0000 (+0000) Subject: tsi108: convert to SKB paged frag API. X-Git-Tag: MMI-PSA29.97-13-9~18194^2~233 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea968771d4c86ba42f84c7f472d9abe4c60c77f5;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git tsi108: convert to SKB paged frag API. Signed-off-by: Ian Campbell Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/tundra/tsi108_eth.c b/drivers/net/ethernet/tundra/tsi108_eth.c index 480a4ba53172..a03996cf88ed 100644 --- a/drivers/net/ethernet/tundra/tsi108_eth.c +++ b/drivers/net/ethernet/tundra/tsi108_eth.c @@ -711,9 +711,10 @@ static int tsi108_send_packet(struct sk_buff * skb, struct net_device *dev) } else { skb_frag_t *frag = &skb_shinfo(skb)->frags[i - 1]; - data->txring[tx].buf0 = - dma_map_page(NULL, frag->page, frag->page_offset, - frag->size, DMA_TO_DEVICE); + data->txring[tx].buf0 = skb_frag_dma_map(NULL, frag, + 0, + frag->size, + DMA_TO_DEVICE); data->txring[tx].len = frag->size; }