]> git.karo-electronics.de Git - linux-beck.git/commitdiff
iommu/vt-d: 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 Intel IOMMU driver to use the new interface for
publishing the iommu_ops.

Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/intel-iommu.c

index c621c98c99da00886931b3aed1b8364c7de6b958..2d53c3df12dca75d47ba7cb9344f42398f3566e1 100644 (file)
@@ -3486,7 +3486,7 @@ int __init intel_iommu_init(void)
 
        init_iommu_pm_ops();
 
-       register_iommu(&intel_iommu_ops);
+       bus_set_iommu(&pci_bus_type, &intel_iommu_ops);
 
        bus_register_notifier(&pci_bus_type, &device_nb);