Skip to content

Commit ce9ff57

Browse files
Petr Tesarikhdeller
authored andcommitted
parisc: pci-dma: remove unused and dead EISA code and comment
Clearly, this code isn't needed, but it gives a false positive when grepping the complete source tree for coherent_dma_mask. Signed-off-by: Petr Tesarik <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent c2ff2b7 commit ce9ff57

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

arch/parisc/kernel/pci-dma.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -417,14 +417,6 @@ void *arch_dma_alloc(struct device *dev, size_t size,
417417
map_uncached_pages(vaddr, size, paddr);
418418
*dma_handle = (dma_addr_t) paddr;
419419

420-
#if 0
421-
/* This probably isn't needed to support EISA cards.
422-
** ISA cards will certainly only support 24-bit DMA addressing.
423-
** Not clear if we can, want, or need to support ISA.
424-
*/
425-
if (!dev || *dev->coherent_dma_mask < 0xffffffff)
426-
gfp |= GFP_DMA;
427-
#endif
428420
return (void *)vaddr;
429421
}
430422

0 commit comments

Comments
 (0)