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: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Hsin-Yi Wang <hsinyi@chromium.org>
Link: https://lore.kernel.org/r/20210113213012.67643-1-enric.balletbo@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
This commit is contained in:
Enric Balletbo i Serra 2021-01-13 22:30:12 +01:00 коммит произвёл Matthias Brugger
Родитель 1b18c0558d
Коммит dd65030295
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

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