diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-08-23 23:30:39 +0200 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2021-08-30 10:18:25 +0200 |
commit | ab9c13a4b539709c7a080089b34de1bf4d1024d0 (patch) | |
tree | 6ab23d7cd8204884148efcb44d8e579d9eb0d5d9 /drivers/parport | |
parent | 6ef4661cad32b5098ffb31be3282c866befde85f (diff) | |
download | lwn-ab9c13a4b539709c7a080089b34de1bf4d1024d0.tar.gz lwn-ab9c13a4b539709c7a080089b34de1bf4d1024d0.zip |
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.c | 5 |
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 */ |