Skip to content

Commit

Permalink
soc: rockchip: io-domain: Fix error return code in rockchip_iodomain_…
Browse files Browse the repository at this point in the history
…probe()

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

Fixes: e943c43 ("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>
  • Loading branch information
Zhang Changzhong authored and Heiko Stuebner committed Dec 4, 2020
1 parent a6a3a24 commit c2867b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/soc/rockchip/io-domain.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c2867b2

Please sign in to comment.