projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7acf71d
)
arm64: Use DMA_ERROR_CODE to denote failed allocation
author
Sean Paul
<seanpaul@chromium.org>
Wed, 1 Oct 2014 15:31:50 +0000
(16:31 +0100)
committer
Catalin Marinas
<catalin.marinas@arm.com>
Thu, 2 Oct 2014 10:57:08 +0000
(11:57 +0100)
This patch replaces the static assignment of ~0 to dma_handle with
DMA_ERROR_CODE to be consistent with other platforms.
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/dma-mapping.c
patch
|
blob
|
history
diff --git
a/arch/arm64/mm/dma-mapping.c
b/arch/arm64/mm/dma-mapping.c
index
d6ceb3d
..
2c71077
100644
(file)
--- a/
arch/arm64/mm/dma-mapping.c
+++ b/
arch/arm64/mm/dma-mapping.c
@@
-122,7
+122,7
@@
static void *__dma_alloc_noncoherent(struct device *dev, size_t size,
no_map:
__dma_free_coherent(dev, size, ptr, *dma_handle, attrs);
no_mem:
- *dma_handle =
~0
;
+ *dma_handle =
DMA_ERROR_CODE
;
return NULL;
}