ksz884x: convert to SKB paged frag API.
authorIan Campbell <Ian.Campbell@citrix.com>
Wed, 31 Aug 2011 00:46:55 +0000 (00:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Sep 2011 19:34:59 +0000 (15:34 -0400)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/micrel/ksz884x.c

index 27418d31a09f52e27615c3a9051edb8a87386a8f..710c4aead146967d28101aae707b58d413399cb1 100644 (file)
@@ -4704,8 +4704,7 @@ static void send_packet(struct sk_buff *skb, struct net_device *dev)
 
                        dma_buf->dma = pci_map_single(
                                hw_priv->pdev,
-                               page_address(this_frag->page) +
-                               this_frag->page_offset,
+                               skb_frag_address(this_frag),
                                dma_buf->len,
                                PCI_DMA_TODEVICE);
                        set_tx_buf(desc, dma_buf->dma);