aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd_iommu_proto.h
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_proto.h
parentiommu/amd: Remove unused fields from struct dma_ops_domain (diff)
downloadlinux-dev-3a18404cd952ae529651f72a13e5d6ffee824c2e.tar.xz
linux-dev-3a18404cd952ae529651f72a13e5d6ffee824c2e.zip
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_proto.h')
-rw-r--r--drivers/iommu/amd_iommu_proto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/amd_iommu_proto.h b/drivers/iommu/amd_iommu_proto.h
index 72b0fd455e24..9ed1c4330551 100644
--- a/drivers/iommu/amd_iommu_proto.h
+++ b/drivers/iommu/amd_iommu_proto.h
@@ -30,7 +30,7 @@ extern void amd_iommu_reset_cmd_buffer(struct amd_iommu *iommu);
extern int amd_iommu_init_devices(void);
extern void amd_iommu_uninit_devices(void);
extern void amd_iommu_init_notifier(void);
-extern void amd_iommu_init_api(void);
+extern int amd_iommu_init_api(void);
/* Needed for interrupt remapping */
extern int amd_iommu_prepare(void);