Commit d64bfe9f authored by Christoph Hellwig's avatar Christoph Hellwig

sgiseeq: switch to dma_alloc_attrs

Use dma_alloc_attrs directly instead of the dma_alloc_noncoherent wrapper.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarRalf Baechle <ralf@linux-mips.org>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5237e95f
...@@ -737,8 +737,8 @@ static int sgiseeq_probe(struct platform_device *pdev) ...@@ -737,8 +737,8 @@ static int sgiseeq_probe(struct platform_device *pdev)
sp = netdev_priv(dev); sp = netdev_priv(dev);
/* Make private data page aligned */ /* Make private data page aligned */
sr = dma_alloc_noncoherent(&pdev->dev, sizeof(*sp->srings), sr = dma_alloc_attrs(&pdev->dev, sizeof(*sp->srings), &sp->srings_dma,
&sp->srings_dma, GFP_KERNEL); GFP_KERNEL, DMA_ATTR_NON_CONSISTENT);
if (!sr) { if (!sr) {
printk(KERN_ERR "Sgiseeq: Page alloc failed, aborting.\n"); printk(KERN_ERR "Sgiseeq: Page alloc failed, aborting.\n");
err = -ENOMEM; err = -ENOMEM;
...@@ -813,8 +813,8 @@ static int sgiseeq_remove(struct platform_device *pdev) ...@@ -813,8 +813,8 @@ static int sgiseeq_remove(struct platform_device *pdev)
struct sgiseeq_private *sp = netdev_priv(dev); struct sgiseeq_private *sp = netdev_priv(dev);
unregister_netdev(dev); unregister_netdev(dev);
dma_free_noncoherent(&pdev->dev, sizeof(*sp->srings), sp->srings, dma_free_attrs(&pdev->dev, sizeof(*sp->srings), sp->srings,
sp->srings_dma); sp->srings_dma, DMA_ATTR_NON_CONSISTENT);
free_netdev(dev); free_netdev(dev);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment