mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
UPSTREAM: iommu/mediatek: Fix error code in probe()
This error path is supposed to return -EINVAL. It used to return directly but we added some clean up and accidentally removed the error code. Also I fixed a typo in the error message. Fixes:c0b57581b7("iommu/mediatek: Add power-domain operation") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Yong Wu <yong.wu@mediatek.com> Link: https://lore.kernel.org/r/YB0+GU5akSdu29Vu@mwanda Signed-off-by: Joerg Roedel <jroedel@suse.de> (cherry picked from commita92a90ac62) BUG=b:174513569 Signed-off-by: Yong Wu <yong.wu@mediatek.com> Change-Id: I65e9f85408625df6c827ef835089d847a8ab7257
This commit is contained in:
@@ -886,7 +886,8 @@ static int mtk_iommu_probe(struct platform_device *pdev)
|
||||
link = device_link_add(data->smicomm_dev, dev,
|
||||
DL_FLAG_STATELESS | DL_FLAG_PM_RUNTIME);
|
||||
if (!link) {
|
||||
dev_err(dev, "Unable link %s.\n", dev_name(data->smicomm_dev));
|
||||
dev_err(dev, "Unable to link %s.\n", dev_name(data->smicomm_dev));
|
||||
ret = -EINVAL;
|
||||
goto out_runtime_disable;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user