iommu/arm-smmu: fix error return code in arm_smmu_device_dt_probe()
PATCH 1/1 iommu/arm-smmu: fix error return code in arm_smmu_device_dt_probe()
From: Wei Yongjun <[email protected]>
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 <[email protected]>
--- drivers/iommu/arm-smmu.c | 1 + 1 file changed, 1 insertion(+)
drivers/iommu/arm-smmu.c +1 -0
@@ -1858,6 +1858,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; }
Will Deacon
AppliedPATCH 1/1 iommu/arm-smmu: fix error return code in arm_smmu_device_dt_probe()
Quoted 15 lines · Wei Yongjun
From: Wei Yongjun <[email protected]>
Fix to return
-ENODEVinstead of 0 when context interrupt number does no match inarm_smmu_device_dt_probe().Signed-off-by Wei Yongjun <[email protected]>--- drivers/iommu/arm-smmu.c | 1 + 1 file changed, 1 insertion(+)drivers/iommu/arm-smmu.c +0
-0
drivers/iommu/arm-smmu.c static int arm_smmu_device_dt_probe(struct platform_device *pdev) · line 1863
Quoted 6 lines
drivers/iommu/arm-smmu.c +1
-0@@ -1858,6 +1858,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; }
Applied to my devel branch. Thanks!
Will