VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   34 Branches   58 Tags
author: Enric Balletbo i Serra <enric.balletbo@collabora.com> 2021-03-03 10:10:54 +0100 committer: Matthias Brugger <matthias.bgg@gmail.com> 2021-03-30 11:52:44 +0200 commit: 9950588a45241b0efcfc312ab0e414260ceca709 parent: 440147639ac79f699a4eb9811d0bc39d3cc815f4
Commit Summary:
soc: mediatek: pm-domains: Fix missing error code in scpsys_add_subdomain()
Diffstat:
1 file changed, 3 insertions, 2 deletions
diff --git a/drivers/soc/mediatek/mtk-pm-domains.c b/drivers/soc/mediatek/mtk-pm-domains.c
index b7f697666bdd..06aaf03b194c 100644
--- a/drivers/soc/mediatek/mtk-pm-domains.c
+++ b/drivers/soc/mediatek/mtk-pm-domains.c
@@ -487,8 +487,9 @@ static int scpsys_add_subdomain(struct scpsys *scpsys, struct device_node *paren
 
 		child_pd = scpsys_add_one_domain(scpsys, child);
 		if (IS_ERR(child_pd)) {
-			dev_err_probe(scpsys->dev, PTR_ERR(child_pd),
-				      "%pOF: failed to get child domain id\n", child);
+			ret = PTR_ERR(child_pd);
+			dev_err_probe(scpsys->dev, ret, "%pOF: failed to get child domain id\n",
+				      child);
 			goto err_put_node;
 		}