]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: gart alloc_coherent doesn't need to check NULL device argument
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Fri, 5 Sep 2008 08:58:49 +0000 (17:58 +0900)
committerIngo Molnar <mingo@elte.hu>
Fri, 5 Sep 2008 10:48:13 +0000 (12:48 +0200)
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>
arch/x86/kernel/pci-gart_64.c

index 4d0864900b8c4b29fc50fe9b6ae33251a86fd680..0b99d4a06f74a8599248ab0768ee63a1e5b33356 100644 (file)
@@ -506,9 +506,6 @@ gart_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_addr,
 
        align_mask = (1UL << get_order(size)) - 1;
 
-       if (!dev)
-               dev = &x86_dma_fallback_dev;
-
        *dma_addr = dma_map_area(dev, __pa(vaddr), size, DMA_BIDIRECTIONAL,
                                 align_mask);
        flush_gart();