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:
8a493d3
)
x86: convert dma_alloc_coherent to use is_device_dma_capable
author
FUJITA Tomonori
<fujita.tomonori@lab.ntt.co.jp>
Tue, 9 Sep 2008 15:49:48 +0000
(
00:49
+0900)
committer
Ingo Molnar
<mingo@elte.hu>
Wed, 10 Sep 2008 11:57:02 +0000
(13:57 +0200)
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-x86/dma-mapping.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-x86/dma-mapping.h
b/include/asm-x86/dma-mapping.h
index f43420b8c5731940de742bc53477adc78b331571..f408e6dd1778d8c69e5b326dbdddd80ec2617eee 100644
(file)
--- a/
include/asm-x86/dma-mapping.h
+++ b/
include/asm-x86/dma-mapping.h
@@
-278,7
+278,7
@@
dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
gfp |= GFP_DMA;
}
- if (!
dev->dma_mask
)
+ if (!
is_device_dma_capable(dev)
)
return NULL;
if (!ops->alloc_coherent)