diff options
Diffstat (limited to 'drivers/iommu/dmar.c')
-rw-r--r-- | drivers/iommu/dmar.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c index e3c03bb7c374..ee4cb1906e45 100644 --- a/drivers/iommu/dmar.c +++ b/drivers/iommu/dmar.c | |||
@@ -1305,15 +1305,14 @@ int dmar_set_interrupt(struct intel_iommu *iommu) | |||
1305 | int __init enable_drhd_fault_handling(void) | 1305 | int __init enable_drhd_fault_handling(void) |
1306 | { | 1306 | { |
1307 | struct dmar_drhd_unit *drhd; | 1307 | struct dmar_drhd_unit *drhd; |
1308 | struct intel_iommu *iommu; | ||
1308 | 1309 | ||
1309 | /* | 1310 | /* |
1310 | * Enable fault control interrupt. | 1311 | * Enable fault control interrupt. |
1311 | */ | 1312 | */ |
1312 | for_each_drhd_unit(drhd) { | 1313 | for_each_iommu(iommu, drhd) { |
1313 | int ret; | ||
1314 | struct intel_iommu *iommu = drhd->iommu; | ||
1315 | u32 fault_status; | 1314 | u32 fault_status; |
1316 | ret = dmar_set_interrupt(iommu); | 1315 | int ret = dmar_set_interrupt(iommu); |
1317 | 1316 | ||
1318 | if (ret) { | 1317 | if (ret) { |
1319 | pr_err("DRHD %Lx: failed to enable fault, interrupt, ret %d\n", | 1318 | pr_err("DRHD %Lx: failed to enable fault, interrupt, ret %d\n", |