summaryrefslogtreecommitdiff
path: root/drivers/parport
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-08-24 00:30:39 +0300
committerHelge Deller <deller@gmx.de>2021-08-30 11:18:25 +0300
commitab9c13a4b539709c7a080089b34de1bf4d1024d0 (patch)
tree6ab23d7cd8204884148efcb44d8e579d9eb0d5d9 /drivers/parport
parent6ef4661cad32b5098ffb31be3282c866befde85f (diff)
downloadlinux-ab9c13a4b539709c7a080089b34de1bf4d1024d0.tar.xz
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>
Diffstat (limited to 'drivers/parport')
-rw-r--r--drivers/parport/parport_gsc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/parport/parport_gsc.c b/drivers/parport/parport_gsc.c
index 4332692ca4b8..0dcc497b0449 100644
--- a/drivers/parport/parport_gsc.c
+++ b/drivers/parport/parport_gsc.c
@@ -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 */