Skip to content

Commit

Permalink
ksz884x: convert to SKB paged frag API.
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ian Campbell authored and David S. Miller committed Sep 15, 2011
1 parent f327358 commit 787343a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/micrel/ksz884x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 787343a

Please sign in to comment.