Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

-8
-8
drivers/opp/core.c
··· 2430 2430 if (opp_table->genpd_virt_devs) 2431 2431 return 0; 2432 2432 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 - 2441 2433 opp_table->genpd_virt_devs = kcalloc(opp_table->required_opp_count, 2442 2434 sizeof(*opp_table->genpd_virt_devs), 2443 2435 GFP_KERNEL);