projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
421076e
)
x86: gart alloc_coherent doesn't need to check NULL device argument
author
FUJITA Tomonori
<fujita.tomonori@lab.ntt.co.jp>
Fri, 5 Sep 2008 08:58:49 +0000
(17:58 +0900)
committer
Ingo 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
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/pci-gart_64.c
b/arch/x86/kernel/pci-gart_64.c
index 4d0864900b8c4b29fc50fe9b6ae33251a86fd680..0b99d4a06f74a8599248ab0768ee63a1e5b33356 100644
(file)
--- 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,
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();