mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
soc: rockchip: io-domain: Fix error return code in rockchip_iodomain_probe()
[ Upstream commitc2867b2e71] Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes:e943c43b32("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
64ae763eef
commit
4771a82fa0
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user