aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/ixp4xx_hss.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2009-05-27 11:10:42 -0400
committerDavid S. Miller <davem@davemloft.net>2009-05-29 04:51:22 -0400
commit5d23a1d2a317e272f171d7818f600fde324eaceb (patch)
treebc0d938e894464a923eecc719f332eee0cbe2aa3 /drivers/net/wan/ixp4xx_hss.c
parent108bfa895cacd1a7c1767e85be105b213e5dce50 (diff)
net: replace dma_sync_single with dma_sync_single_for_cpu
This replaces dma_sync_single() with dma_sync_single_for_cpu() because dma_sync_single() is an obsolete API; include/linux/dma-mapping.h says: /* Backwards compat, remove in 2.7.x */ #define dma_sync_single dma_sync_single_for_cpu #define dma_sync_sg dma_sync_sg_for_cpu Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/ixp4xx_hss.c')
-rw-r--r--drivers/net/wan/ixp4xx_hss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wan/ixp4xx_hss.c b/drivers/net/wan/ixp4xx_hss.c
index 765a7f5d6aa4..08b1a284b690 100644
--- a/drivers/net/wan/ixp4xx_hss.c
+++ b/drivers/net/wan/ixp4xx_hss.c
@@ -731,8 +731,8 @@ static int hss_hdlc_poll(struct napi_struct *napi, int budget)
731 dma_unmap_single(&dev->dev, desc->data, 731 dma_unmap_single(&dev->dev, desc->data,
732 RX_SIZE, DMA_FROM_DEVICE); 732 RX_SIZE, DMA_FROM_DEVICE);
733#else 733#else
734 dma_sync_single(&dev->dev, desc->data, 734 dma_sync_single_for_cpu(&dev->dev, desc->data,
735 RX_SIZE, DMA_FROM_DEVICE); 735 RX_SIZE, DMA_FROM_DEVICE);
736 memcpy_swab32((u32 *)skb->data, (u32 *)port->rx_buff_tab[n], 736 memcpy_swab32((u32 *)skb->data, (u32 *)port->rx_buff_tab[n],
737 ALIGN(desc->pkt_len, 4) / 4); 737 ALIGN(desc->pkt_len, 4) / 4);
738#endif 738#endif