Skip to content

Commit

Permalink
iommu/arm-smmu: fix error return code in arm_smmu_device_dt_probe()
Browse files Browse the repository at this point in the history
Fix to return -ENODEV instead of 0 when context interrupt number
does no match in arm_smmu_device_dt_probe().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Will Deacon <will.deacon@arm.com>
  • Loading branch information
Wei Yongjun authored and Will Deacon committed Dec 6, 2013
1 parent 5552ecd commit 89a23cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/iommu/arm-smmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1852,6 +1852,7 @@ static int arm_smmu_device_dt_probe(struct platform_device *pdev)
dev_err(dev,
"found only %d context interrupt(s) but %d required\n",
smmu->num_context_irqs, smmu->num_context_banks);
err = -ENODEV;
goto out_put_parent;
}

Expand Down

0 comments on commit 89a23cd

Please sign in to comment.