Skip to content

Commit 0c38502

Browse files
tititiou36hdeller
authored andcommitted
parisc: 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 87875c1 commit 0c38502

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/parisc/ccio-dma.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -518,9 +518,9 @@ typedef unsigned long space_t;
518518
** when it passes in BIDIRECTIONAL flag.
519519
*/
520520
static u32 hint_lookup[] = {
521-
[PCI_DMA_BIDIRECTIONAL] = HINT_STOP_MOST | HINT_SAFE_DMA | IOPDIR_VALID,
522-
[PCI_DMA_TODEVICE] = HINT_STOP_MOST | HINT_PREFETCH | IOPDIR_VALID,
523-
[PCI_DMA_FROMDEVICE] = HINT_STOP_MOST | IOPDIR_VALID,
521+
[DMA_BIDIRECTIONAL] = HINT_STOP_MOST | HINT_SAFE_DMA | IOPDIR_VALID,
522+
[DMA_TO_DEVICE] = HINT_STOP_MOST | HINT_PREFETCH | IOPDIR_VALID,
523+
[DMA_FROM_DEVICE] = HINT_STOP_MOST | IOPDIR_VALID,
524524
};
525525

526526
/**
@@ -860,7 +860,7 @@ ccio_alloc(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t flag,
860860

861861
if (ret) {
862862
memset(ret, 0, size);
863-
*dma_handle = ccio_map_single(dev, ret, size, PCI_DMA_BIDIRECTIONAL);
863+
*dma_handle = ccio_map_single(dev, ret, size, DMA_BIDIRECTIONAL);
864864
}
865865

866866
return ret;

0 commit comments

Comments
 (0)