Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Christophe JAILLET and committed by
Helge Deller
ab9c13a4 6ef4661c

+2 -3
+2 -3
drivers/parport/parport_gsc.c
··· 390 390 if (p->irq != PARPORT_IRQ_NONE) 391 391 free_irq(p->irq, p); 392 392 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); 396 395 kfree (p->private_data); 397 396 parport_put_port(p); 398 397 kfree (ops); /* hope no-one cached it */