Skip to content

Commit ab9c13a

Browse files
tititiou36hdeller
authored andcommitted
parisc/parport_gsc: switch from 'pci_' to 'dma_' API
The wrappers in include/linux/pci-dma-compat.h should go away. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 6ef4661 commit ab9c13a

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/parport/parport_gsc.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,9 +390,8 @@ static void __exit parport_remove_chip(struct parisc_device *dev)
390390
if (p->irq != PARPORT_IRQ_NONE)
391391
free_irq(p->irq, p);
392392
if (priv->dma_buf)
393-
pci_free_consistent(priv->dev, PAGE_SIZE,
394-
priv->dma_buf,
395-
priv->dma_handle);
393+
dma_free_coherent(&priv->dev->dev, PAGE_SIZE,
394+
priv->dma_buf, priv->dma_handle);
396395
kfree (p->private_data);
397396
parport_put_port(p);
398397
kfree (ops); /* hope no-one cached it */

0 commit comments

Comments
 (0)