Commit c2867b2e authored by Zhang Changzhong's avatar Zhang Changzhong Committed by Heiko Stuebner

soc: rockchip: io-domain: Fix error return code in rockchip_iodomain_probe()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: e943c43b ("PM: AVS: rockchip-io: Move the driver to the rockchip specific drivers")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarZhang Changzhong <zhangchangzhong@huawei.com>
Link: https://lore.kernel.org/r/1607070805-33038-1-git-send-email-zhangchangzhong@huawei.comSigned-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent a6a3a24c
......@@ -544,6 +544,7 @@ static int rockchip_iodomain_probe(struct platform_device *pdev)
if (uV < 0) {
dev_err(iod->dev, "Can't determine voltage: %s\n",
supply_name);
ret = uV;
goto unreg_notify;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment