[PATCH] PM: AVS: rockchip-io: Fix error return code in rockchip_iodomain_probe()
Zhang Changzhong
zhangchangzhong at huawei.com
Fri Dec 4 03:33:25 EST 2020
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Fixes: e943c43b32ce ("PM: AVS: rockchip-io: Move the driver to the rockchip specific drivers")
Reported-by: Hulk Robot <hulkci at huawei.com>
Signed-off-by: Zhang Changzhong <zhangchangzhong at huawei.com>
---
drivers/soc/rockchip/io-domain.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/soc/rockchip/io-domain.c b/drivers/soc/rockchip/io-domain.c
index eece97f..b29e829 100644
--- a/drivers/soc/rockchip/io-domain.c
+++ b/drivers/soc/rockchip/io-domain.c
@@ -547,6 +547,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;
}
--
2.9.5
More information about the Linux-rockchip
mailing list