aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorOhad Ben-Cohen <ohad@wizery.com>2011-11-10 04:32:31 -0500
committerJoerg Roedel <joerg.roedel@amd.com>2011-11-10 05:40:38 -0500
commit6c274d1cd5b3aa0834e9f0c3f58038f42278ff8c (patch)
treef31f88dd5150a6e09f1129e0bfe4b0959215ee0c /drivers/iommu
parent6d1c56a9db48977942602a50e88eeb61a3e625eb (diff)
iommu/core: remove the temporary pgsize settings
Now that all IOMMU drivers are exporting their supported pgsizes, we can remove the default pgsize settings in register_iommu(). Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/iommu.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
index b278458d581..84cdd8ac81f 100644
--- a/drivers/iommu/iommu.c
+++ b/drivers/iommu/iommu.c
@@ -49,16 +49,6 @@ int bus_set_iommu(struct bus_type *bus, struct iommu_ops *ops)
49 if (bus->iommu_ops != NULL) 49 if (bus->iommu_ops != NULL)
50 return -EBUSY; 50 return -EBUSY;
51 51
52 /*
53 * Set the default pgsize values, which retain the existing
54 * IOMMU API behavior: drivers will be called to map
55 * regions that are sized/aligned to order of 4KiB pages.
56 *
57 * This will be removed once all drivers are migrated.
58 */
59 if (!ops->pgsize_bitmap)
60 ops->pgsize_bitmap = ~0xFFFUL;
61
62 bus->iommu_ops = ops; 52 bus->iommu_ops = ops;
63 53
64 /* Do IOMMU specific setup for this bus-type */ 54 /* Do IOMMU specific setup for this bus-type */