Message ID | 42e4a2ad-4349-6d64-b170-c31963d0416f@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/iommu/mtk_iommu.c b/drivers/iommu/mtk_iommu.c index b12c12d..9249011 100644 --- a/drivers/iommu/mtk_iommu.c +++ b/drivers/iommu/mtk_iommu.c @@ -602,10 +602,12 @@ static int mtk_iommu_probe(struct platform_device *pdev) if (ret) return ret; - if (!iommu_present(&platform_bus_type)) + ret = component_master_add_with_match(dev, &mtk_iommu_com_ops, match); + + if (ret && !iommu_present(&platform_bus_type)) bus_set_iommu(&platform_bus_type, &mtk_iommu_ops); - return component_master_add_with_match(dev, &mtk_iommu_com_ops, match); + return ret;