aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/pci-gart_64.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2008-09-05 04:58:49 -0400
committerIngo Molnar <mingo@elte.hu>2008-09-05 06:48:13 -0400
commit551b4545bf9658dc5ae5a1277dcd4d7bf0028b28 (patch)
tree05624847e914051a6bbc82f91d3b19674855e254 /arch/x86/kernel/pci-gart_64.c
parent421076e2bec1b917bdcf83da35b24f6349bf35db (diff)
x86: gart alloc_coherent doesn't need to check NULL device argument
asm/dma-mapping.h guarantees that gart alloc_coherent doesn't get NULL device argument. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Acked-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/pci-gart_64.c')
-rw-r--r--arch/x86/kernel/pci-gart_64.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kernel/pci-gart_64.c b/arch/x86/kernel/pci-gart_64.c
index 4d0864900b8c..0b99d4a06f74 100644
--- a/arch/x86/kernel/pci-gart_64.c
+++ b/arch/x86/kernel/pci-gart_64.c
@@ -506,9 +506,6 @@ gart_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_addr,
506 506
507 align_mask = (1UL << get_order(size)) - 1; 507 align_mask = (1UL << get_order(size)) - 1;
508 508
509 if (!dev)
510 dev = &x86_dma_fallback_dev;
511
512 *dma_addr = dma_map_area(dev, __pa(vaddr), size, DMA_BIDIRECTIONAL, 509 *dma_addr = dma_map_area(dev, __pa(vaddr), size, DMA_BIDIRECTIONAL,
513 align_mask); 510 align_mask);
514 flush_gart(); 511 flush_gart();