From: Ian Campbell Date: Wed, 31 Aug 2011 00:47:03 +0000 (+0000) Subject: qla3xxx: convert to SKB paged frag API. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2af830e5919b6371e109b71597ceca977d23199c;p=linux-beck.git qla3xxx: convert to SKB paged frag API. Signed-off-by: Ian Campbell Cc: Ron Mercer Cc: linux-driver@qlogic.com Cc: netdev@vger.kernel.org Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/qlogic/qla3xxx.c b/drivers/net/ethernet/qlogic/qla3xxx.c index 8cab61c08c8d..1871d88ee712 100644 --- a/drivers/net/ethernet/qlogic/qla3xxx.c +++ b/drivers/net/ethernet/qlogic/qla3xxx.c @@ -2388,9 +2388,8 @@ static int ql_send_map(struct ql3_adapter *qdev, seg++; } - map = pci_map_page(qdev->pdev, frag->page, - frag->page_offset, frag->size, - PCI_DMA_TODEVICE); + map = skb_frag_dma_map(&qdev->pdev->dev, frag, 0, frag->size, + PCI_DMA_TODEVICE); err = pci_dma_mapping_error(qdev->pdev, map); if (err) {