瀏覽代碼

iommu/amd: Use bus_set_iommu instead of register_iommu

Convert the AMD IOMMU driver to use the new interface for
publishing the iommu_ops.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Joerg Roedel 13 年之前
父節點
當前提交
2cc21c4236
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/iommu/amd_iommu.c

+ 1 - 1
drivers/iommu/amd_iommu.c

@@ -2493,7 +2493,7 @@ static unsigned device_dma_ops_init(void)
 
 void __init amd_iommu_init_api(void)
 {
-	register_iommu(&amd_iommu_ops);
+	bus_set_iommu(&pci_bus_type, &amd_iommu_ops);
 }
 
 int __init amd_iommu_init_dma_ops(void)