Skip to content

Commit 5ea4911

Browse files
committed
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 <[email protected]> Reviewed-by: Ulf Hansson <[email protected]>
1 parent 48b5aae commit 5ea4911

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/opp/core.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2430,14 +2430,6 @@ static int _opp_attach_genpd(struct opp_table *opp_table, struct device *dev,
24302430
if (opp_table->genpd_virt_devs)
24312431
return 0;
24322432

2433-
/*
2434-
* If the genpd's OPP table isn't already initialized, parsing of the
2435-
* required-opps fail for dev. We should retry this after genpd's OPP
2436-
* table is added.
2437-
*/
2438-
if (!opp_table->required_opp_count)
2439-
return -EPROBE_DEFER;
2440-
24412433
opp_table->genpd_virt_devs = kcalloc(opp_table->required_opp_count,
24422434
sizeof(*opp_table->genpd_virt_devs),
24432435
GFP_KERNEL);

0 commit comments

Comments
 (0)