gpu: ion: Fix incorrect BUG_ON()
Hiroshi DOYU [Mon, 16 Jan 2012 08:55:08 +0000 (10:55 +0200)]
ALIGN() -> IS_ALIGN().

Change-Id: I4451142932c5b33e83a8296c654226c41db73611
Signed-off-by: Hiroshi DOYU <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/75530
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>

drivers/gpu/ion/ion_iommu_heap.c

index 106c0d0..58b3a21 100644 (file)
@@ -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;