diff options
author | Zhang Changzhong <zhangchangzhong@huawei.com> | 2020-12-04 11:33:25 +0300 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2020-12-04 13:20:47 +0300 |
commit | c2867b2e710fc85bb39c6f6e5948450c48e8a33e (patch) | |
tree | 75a3f77d8fdf859898983ba6d59b04d7cf2f652a /drivers/soc | |
parent | a6a3a24c129d229a0eb26b329ab617e2a04245dd (diff) | |
download | linux-c2867b2e710fc85bb39c6f6e5948450c48e8a33e.tar.xz |
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: e943c43b32ce ("PM: AVS: rockchip-io: Move the driver to the rockchip specific drivers")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Link: https://lore.kernel.org/r/1607070805-33038-1-git-send-email-zhangchangzhong@huawei.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'drivers/soc')
-rw-r--r-- | drivers/soc/rockchip/io-domain.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/soc/rockchip/io-domain.c b/drivers/soc/rockchip/io-domain.c index d13d2d497720..cf8182fc3642 100644 --- a/drivers/soc/rockchip/io-domain.c +++ b/drivers/soc/rockchip/io-domain.c @@ -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; } |