diff options
author | Ian Campbell <Ian.Campbell@citrix.com> | 2011-10-05 04:28:48 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-10-06 01:36:00 +0400 |
commit | bf3f1a6081aab6a0d4d708c49a158ed2e3af6f5a (patch) | |
tree | 9937f88ee957edc8ada04e784e47f374e96a44cc /drivers | |
parent | 01c68026e4305bc5c0a2b74e50830637f5dda9a3 (diff) | |
download | linux-bf3f1a6081aab6a0d4d708c49a158ed2e3af6f5a.tar.xz |
et131x: convert to SKB paged frag API.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Mark Einon <mark.einon@gmail.com>
Cc: devel@driverdev.osuosl.org
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/et131x/et1310_tx.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/staging/et131x/et1310_tx.c b/drivers/staging/et131x/et1310_tx.c index 8fb3051fe288..03e7a4ea510d 100644 --- a/drivers/staging/et131x/et1310_tx.c +++ b/drivers/staging/et131x/et1310_tx.c @@ -519,12 +519,12 @@ static int nic_send_packet(struct et131x_adapter *etdev, struct tcb *tcb) * returned by pci_map_page() is always 32-bit * addressable (as defined by the pci/dma subsystem) */ - desc[frag++].addr_lo = - pci_map_page(etdev->pdev, - frags[i - 1].page, - frags[i - 1].page_offset, - frags[i - 1].size, - PCI_DMA_TODEVICE); + desc[frag++].addr_lo = skb_frag_dma_map( + &etdev->pdev->dev, + &frags[i - 1], + 0, + frags[i - 1].size, + PCI_DMA_TODEVICE); } } |