summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd_iommu.c
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2015-05-28 18:41:45 +0200
committerJoerg Roedel <jroedel@suse.de>2015-06-11 09:42:24 +0200
commit3a18404cd952ae529651f72a13e5d6ffee824c2e (patch)
treef79fa73b3d88281a5525f96954fae14da93ee945 /drivers/iommu/amd_iommu.c
parent2870b0a4911038fd6aed9093cda2dbe80fd0ee2e (diff)
downloadop-kernel-dev-3a18404cd952ae529651f72a13e5d6ffee824c2e.zip
op-kernel-dev-3a18404cd952ae529651f72a13e5d6ffee824c2e.tar.gz
iommu/amd: Propagate errors from amd_iommu_init_api
This function can fail. Propagate any errors back to the initialization state machine. Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/amd_iommu.c')
-rw-r--r--drivers/iommu/amd_iommu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index 96390b9..8bc6f40 100644
--- a/drivers/iommu/amd_iommu.c
+++ b/drivers/iommu/amd_iommu.c
@@ -2840,9 +2840,9 @@ static struct dma_map_ops amd_iommu_dma_ops = {
.dma_supported = amd_iommu_dma_supported,
};
-void __init amd_iommu_init_api(void)
+int __init amd_iommu_init_api(void)
{
- bus_set_iommu(&pci_bus_type, &amd_iommu_ops);
+ return bus_set_iommu(&pci_bus_type, &amd_iommu_ops);
}
int __init amd_iommu_init_dma_ops(void)
OpenPOWER on IntegriCloud