summaryrefslogtreecommitdiff
path: root/drivers/gpu/ion/ion_iommu_heap.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/ion/ion_iommu_heap.c')
-rw-r--r--drivers/gpu/ion/ion_iommu_heap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/ion/ion_iommu_heap.c b/drivers/gpu/ion/ion_iommu_heap.c
index 106c0d075570..58b3a217424c 100644
--- a/drivers/gpu/ion/ion_iommu_heap.c
+++ b/drivers/gpu/ion/ion_iommu_heap.c
@@ -60,7 +60,7 @@ static struct scatterlist *iommu_heap_map_dma(struct ion_heap *heap,
phys_addr_t pa;
pa = sg_phys(sg);
- BUG_ON(!ALIGN(sg->length, PAGE_SIZE));
+ BUG_ON(!IS_ALIGNED(sg->length, PAGE_SIZE));
err = iommu_map(h->domain, da, pa, 0, 0);
if (err)
goto err_out;