Skip to content

Commit 475ac8e

Browse files
committed
opp: Drop unnecessary check from dev_pm_opp_attach_genpd()
Since commit c0ab9e0 ("opp: Allocate genpd_virt_devs from dev_pm_opp_attach_genpd()"), the allocation of the virtual devices is moved to dev_pm_opp_attach_genpd() and this check isn't required anymore as it will always fail. Drop it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
1 parent 3a55787 commit 475ac8e

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

drivers/opp/core.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,12 +2019,6 @@ struct opp_table *dev_pm_opp_attach_genpd(struct device *dev,
20192019
goto err;
20202020
}
20212021

2022-
if (opp_table->genpd_virt_devs[index]) {
2023-
dev_err(dev, "Genpd virtual device already set %s\n",
2024-
*name);
2025-
goto err;
2026-
}
2027-
20282022
virt_dev = dev_pm_domain_attach_by_name(dev, *name);
20292023
if (IS_ERR(virt_dev)) {
20302024
ret = PTR_ERR(virt_dev);

0 commit comments

Comments
 (0)