diff options
author | Ian Campbell <Ian.Campbell@citrix.com> | 2011-08-31 00:46:55 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-09-15 19:34:59 (GMT) |
commit | 787343ad3d321fc987e36715433050df88353465 (patch) | |
tree | ddc7c94dd84e10af688feeb999bc4d6f3ad94a28 | |
parent | f327358ab2cdfa534b2dc89e9dd2266c0f61f587 (diff) | |
download | linux-787343ad3d321fc987e36715433050df88353465.tar.xz |
ksz884x: 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>
-rw-r--r-- | drivers/net/ethernet/micrel/ksz884x.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/micrel/ksz884x.c b/drivers/net/ethernet/micrel/ksz884x.c index 27418d3..710c4ae 100644 --- a/drivers/net/ethernet/micrel/ksz884x.c +++ b/drivers/net/ethernet/micrel/ksz884x.c @@ -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); |