|
@@ -232,7 +232,7 @@ xen_swiotlb_alloc_coherent(struct device *hwdev, size_t size,
|
|
return ret;
|
|
return ret;
|
|
|
|
|
|
if (hwdev && hwdev->coherent_dma_mask)
|
|
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);
|
|
phys = virt_to_phys(ret);
|
|
dev_addr = xen_phys_to_bus(phys);
|
|
dev_addr = xen_phys_to_bus(phys);
|