]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/xen/swiotlb-xen.c
Merge branch 'stable/late-swiotlb.v3.3' into stable/for-linus-3.7
[~shefty/rdma-dev.git] / drivers / xen / swiotlb-xen.c
index ab4c66c19c1a3b338a2c7e45db52039b43c0de29..58db6df866ef3338f6fc787acd552fe03d0a0b69 100644 (file)
@@ -52,7 +52,7 @@ static unsigned long xen_io_tlb_nslabs;
  * Quick lookup value of the bus address of the IOTLB.
  */
 
-u64 start_dma_addr;
+static u64 start_dma_addr;
 
 static dma_addr_t xen_phys_to_bus(phys_addr_t paddr)
 {
@@ -281,7 +281,7 @@ xen_swiotlb_alloc_coherent(struct device *hwdev, size_t size,
                return ret;
 
        if (hwdev && hwdev->coherent_dma_mask)
-               dma_mask = hwdev->coherent_dma_mask;
+               dma_mask = dma_alloc_coherent_mask(hwdev, flags);
 
        phys = virt_to_phys(ret);
        dev_addr = xen_phys_to_bus(phys);