summaryrefslogtreecommitdiff
path: root/drivers/opp
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2023-10-13 09:12:19 +0530
committerViresh Kumar <viresh.kumar@linaro.org>2023-10-17 11:11:28 +0530
commit5ea4911359a534ffe95e7158b4d1c7ccb2f73b17 (patch)
treeabdd5c1ee73911b9fc424e647964a2491590335f /drivers/opp
parent48b5aaec596d9a2a22c97a1e2aa56103e0c72d38 (diff)
downloadlwn-5ea4911359a534ffe95e7158b4d1c7ccb2f73b17.tar.gz
lwn-5ea4911359a534ffe95e7158b4d1c7ccb2f73b17.zip
OPP: No need to defer probe from _opp_attach_genpd()
When the new interface for attaching genpd's via the OPP core was added, it was possible for required_opp_count to be zero, but not anymore. Remove the unused check. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/opp')
-rw-r--r--drivers/opp/core.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/opp/core.c b/drivers/opp/core.c
index 2ceadc3f93ca..84f345c69ea5 100644
--- a/drivers/opp/core.c
+++ b/drivers/opp/core.c
@@ -2430,14 +2430,6 @@ static int _opp_attach_genpd(struct opp_table *opp_table, struct device *dev,
if (opp_table->genpd_virt_devs)
return 0;
- /*
- * If the genpd's OPP table isn't already initialized, parsing of the
- * required-opps fail for dev. We should retry this after genpd's OPP
- * table is added.
- */
- if (!opp_table->required_opp_count)
- return -EPROBE_DEFER;
-
opp_table->genpd_virt_devs = kcalloc(opp_table->required_opp_count,
sizeof(*opp_table->genpd_virt_devs),
GFP_KERNEL);