Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Zhang Changzhong and committed by
Heiko Stuebner
c2867b2e a6a3a24c

+1
+1
drivers/soc/rockchip/io-domain.c
··· 544 544 if (uV < 0) { 545 545 dev_err(iod->dev, "Can't determine voltage: %s\n", 546 546 supply_name); 547 + ret = uV; 547 548 goto unreg_notify; 548 549 } 549 550