]> Pileus Git - ~andy/linux/blobdiff - drivers/iommu/msm_iommu.c
[media] tlg2300: convert set_fontend to use DVBv5 parameters
[~andy/linux] / drivers / iommu / msm_iommu.c
index 1a584e077c61fa36b00f0dc273b600a87ea1b726..5865dd2e28f928b0cf55ff1c5ebddfe5786e1d16 100644 (file)
@@ -543,6 +543,13 @@ static int msm_iommu_unmap(struct iommu_domain *domain, unsigned long va,
        }
 
        ret = __flush_iotlb(domain);
+
+       /*
+        * the IOMMU API requires us to return the order of the unmapped
+        * page (on success).
+        */
+       if (!ret)
+               ret = order;
 fail:
        spin_unlock_irqrestore(&msm_iommu_lock, flags);
        return ret;
@@ -721,7 +728,7 @@ static void __init setup_iommu_tex_classes(void)
 static int __init msm_iommu_init(void)
 {
        setup_iommu_tex_classes();
-       register_iommu(&msm_iommu_ops);
+       bus_set_iommu(&platform_bus_type, &msm_iommu_ops);
        return 0;
 }