Commit dd650302 authored by Enric Balletbo i Serra's avatar Enric Balletbo i Serra Committed by Matthias Brugger

soc: mediatek: pm-domains: Don't print an error if child domain is deferred

Child domains can be deferred by the core because one of its resources
is not available yet, in such case, it will print an error, but
later it will succeed to probe. Fix that using the dev_err_probe()
function so it only prints an error on a real error.
Signed-off-by: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: default avatarHsin-Yi Wang <hsinyi@chromium.org>
Link: https://lore.kernel.org/r/20210113213012.67643-1-enric.balletbo@collabora.comSigned-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
parent 1b18c055
...@@ -487,8 +487,8 @@ static int scpsys_add_subdomain(struct scpsys *scpsys, struct device_node *paren ...@@ -487,8 +487,8 @@ static int scpsys_add_subdomain(struct scpsys *scpsys, struct device_node *paren
child_pd = scpsys_add_one_domain(scpsys, child); child_pd = scpsys_add_one_domain(scpsys, child);
if (IS_ERR(child_pd)) { if (IS_ERR(child_pd)) {
ret = PTR_ERR(child_pd); dev_err_probe(scpsys->dev, PTR_ERR(child_pd),
dev_err(scpsys->dev, "%pOF: failed to get child domain id\n", child); "%pOF: failed to get child domain id\n", child);
goto err_put_node; goto err_put_node;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment