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:
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;
}