iommu/omap: Use bus_set_iommu instead of register_iommu
authorJoerg Roedel <joerg.roedel@amd.com>
Tue, 6 Sep 2011 15:56:07 +0000 (17:56 +0200)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 21 Oct 2011 12:37:22 +0000 (14:37 +0200)
Convert the OMAP IOMMU driver on ARM to use the new
interface for publishing the iommu_ops.

Cc: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/omap-iommu.c

index bd5f606..16d5b76 100644 (file)
@@ -1250,7 +1250,7 @@ static int __init omap_iommu_init(void)
                return -ENOMEM;
        iopte_cachep = p;
 
-       register_iommu(&omap_iommu_ops);
+       bus_set_iommu(&platform_bus_type, &omap_iommu_ops);
 
        return platform_driver_register(&omap_iommu_driver);
 }