iommu/core: Use PAGE_SIZE instead of hard-coded value
Replace the hard-coded 4kb by PAGE_SIZE to make iommu-api
implementations possible on architectures where
PAGE_SIZE != 4kb.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
index e61a9bad..30b0644 100644
--- a/drivers/iommu/iommu.c
+++ b/drivers/iommu/iommu.c
@@ -100,7 +100,7 @@
{
size_t size;
- size = 0x1000UL << gfp_order;
+ size = PAGE_SIZE << gfp_order;
BUG_ON(!IS_ALIGNED(iova | paddr, size));
@@ -112,7 +112,7 @@
{
size_t size;
- size = 0x1000UL << gfp_order;
+ size = PAGE_SIZE << gfp_order;
BUG_ON(!IS_ALIGNED(iova, size));