diff options
author | Hiroshi DOYU <hdoyu@nvidia.com> | 2012-01-16 10:55:08 +0200 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-01-23 06:20:23 -0800 |
commit | 238007b059b10701a2e7659b2291246605d220fb (patch) | |
tree | f8213a9fb8a400cee58e3febd06078fb47b36b10 /drivers/gpu | |
parent | 93f1fa44d4a951e086e0499a9fccc2bd5158219f (diff) |
gpu: ion: Fix incorrect BUG_ON()
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>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/ion/ion_iommu_heap.c | 2 |
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; |