git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MIPS: RB532: Remove unused rc32434_sync_delay and rc32434_sync_udelay
[safe/jmp/linux-2.6]
/
lib
/
swiotlb.c
diff --git
a/lib/swiotlb.c
b/lib/swiotlb.c
index
977edbd
..
8826fdf
100644
(file)
--- a/
lib/swiotlb.c
+++ b/
lib/swiotlb.c
@@
-491,7
+491,7
@@
swiotlb_alloc_coherent(struct device *hwdev, size_t size,
* the lowest available address range.
*/
dma_addr_t handle;
* the lowest available address range.
*/
dma_addr_t handle;
- handle = swiotlb_map_single(
NULL
, NULL, size, DMA_FROM_DEVICE);
+ handle = swiotlb_map_single(
hwdev
, NULL, size, DMA_FROM_DEVICE);
if (swiotlb_dma_mapping_error(hwdev, handle))
return NULL;
if (swiotlb_dma_mapping_error(hwdev, handle))
return NULL;