parisc/parport_gsc: switch from 'pci_' to 'dma_' API
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 23 Aug 2021 21:30:39 +0000 (23:30 +0200)
committerHelge Deller <deller@gmx.de>
Mon, 30 Aug 2021 08:18:25 +0000 (10:18 +0200)
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>
drivers/parport/parport_gsc.c

index 4332692..0dcc497 100644 (file)
@@ -390,9 +390,8 @@ static void __exit parport_remove_chip(struct parisc_device *dev)
                if (p->irq != PARPORT_IRQ_NONE)
                        free_irq(p->irq, p);
                if (priv->dma_buf)
-                       pci_free_consistent(priv->dev, PAGE_SIZE,
-                                           priv->dma_buf,
-                                           priv->dma_handle);
+                       dma_free_coherent(&priv->dev->dev, PAGE_SIZE,
+                                         priv->dma_buf, priv->dma_handle);
                kfree (p->private_data);
                parport_put_port(p);
                kfree (ops); /* hope no-one cached it */