aboutsummaryrefslogtreecommitdiff
path: root/drivers/opp/core.c
diff options
context:
space:
mode:
authorViresh Kumar2020-08-27 15:06:43 +0530
committerViresh Kumar2020-09-16 14:02:33 +0530
commit475ac8ead803e8c3a8f492e3129b1a19d7e2efd7 (patch)
tree3238c1699cc51859cf14d365c7845b42cf555269 /drivers/opp/core.c
parent3a5578784d1eb4b89f5f112f67caad4a76ae19c3 (diff)
opp: Drop unnecessary check from dev_pm_opp_attach_genpd()
Since commit c0ab9e0812da ("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>
Diffstat (limited to 'drivers/opp/core.c')
-rw-r--r--drivers/opp/core.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/opp/core.c b/drivers/opp/core.c
index 8c69a764d0a4..fa97a875eb47 100644
--- a/drivers/opp/core.c
+++ b/drivers/opp/core.c
@@ -2019,12 +2019,6 @@ struct opp_table *dev_pm_opp_attach_genpd(struct device *dev,
goto err;
}
- if (opp_table->genpd_virt_devs[index]) {
- dev_err(dev, "Genpd virtual device already set %s\n",
- *name);
- goto err;
- }
-
virt_dev = dev_pm_domain_attach_by_name(dev, *name);
if (IS_ERR(virt_dev)) {
ret = PTR_ERR(virt_dev);