iommu/mediatek: Fix error code in probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 5 Feb 2021 12:46:17 +0000 (15:46 +0300)
committerJoerg Roedel <jroedel@suse.de>
Mon, 8 Feb 2021 08:11:06 +0000 (09:11 +0100)
commita92a90ac62d3284a8deaef43c6ea4dbd5dd878b0
tree52183cd15748bd75d5d116766a8526d8fe8cc550
parent7a5661739d4bf23cd356fb13bb1e0790e09df3c5
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: c0b57581b73b ("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>
drivers/iommu/mtk_iommu.c