projects
/
linux
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6a3a24
)
soc: rockchip: io-domain: Fix error return code in rockchip_iodomain_probe()
author
Zhang Changzhong
<zhangchangzhong@huawei.com>
Fri, 4 Dec 2020 08:33:25 +0000
(16:33 +0800)
committer
Heiko Stuebner
<heiko@sntech.de>
Fri, 4 Dec 2020 10:20:47 +0000
(11:20 +0100)
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>
drivers/soc/rockchip/io-domain.c
patch
|
blob
|
history
diff --git
a/drivers/soc/rockchip/io-domain.c
b/drivers/soc/rockchip/io-domain.c
index d13d2d497720b2e883db3b3684e5a3b1116a5330..cf8182fc3642dcbc3fdfd8cf71701a8153f03ed9 100644
(file)
--- 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;
}