X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fswiotlb.c;h=8826fdf0f1801029e4b5e43555af44b5da203aae;hb=7e96445533ac3f4f7964646a202ff3620602fab4;hp=d568894df8ccd335c4acdcb47da4a7b3c4830150;hpb=5f78e4d33945b291d12765cdd7e4304f437b9361;p=pandora-kernel.git diff --git a/lib/swiotlb.c b/lib/swiotlb.c index d568894df8cc..8826fdf0f180 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -491,8 +491,8 @@ 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); - if (swiotlb_dma_mapping_error(handle)) + handle = swiotlb_map_single(hwdev, NULL, size, DMA_FROM_DEVICE); + if (swiotlb_dma_mapping_error(hwdev, handle)) return NULL; ret = bus_to_virt(handle); @@ -824,7 +824,7 @@ swiotlb_sync_sg_for_device(struct device *hwdev, struct scatterlist *sg, } int -swiotlb_dma_mapping_error(dma_addr_t dma_addr) +swiotlb_dma_mapping_error(struct device *hwdev, dma_addr_t dma_addr) { return (dma_addr == virt_to_bus(io_tlb_overflow_buffer)); }