]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - lib/swiotlb.c
Merge branch 'x86/tracehook' into x86-v28-for-linus-phase1
[karo-tx-linux.git] / lib / swiotlb.c
index 977edbdbc1debada5937958f5835b1dc88c9beba..8826fdf0f1801029e4b5e43555af44b5da203aae 100644 (file)
@@ -491,7 +491,7 @@ swiotlb_alloc_coherent(struct device *hwdev, size_t size,
                 * 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;