]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - lib/swiotlb.c
atmel-mci: Initialize BLKR before sending data transfer command
[linux-2.6-omap-h63xx.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;