Skip to content

Commit

Permalink
iommu/amd: Use bus_set_iommu instead of register_iommu
Browse files Browse the repository at this point in the history
Convert the AMD IOMMU driver to use the new interface for
publishing the iommu_ops.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
  • Loading branch information
Joerg Roedel committed Oct 21, 2011
1 parent e5aa7f0 commit 2cc21c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2cc21c4

Please sign in to comment.