opp: Drop empty-table checks from _put functions
authorDmitry Osipenko <digetx@gmail.com>
Sun, 15 Aug 2021 16:43:44 +0000 (19:43 +0300)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 16 Aug 2021 04:12:08 +0000 (09:42 +0530)
commitc3ddfe66d2bb511f7fbcdc8e64952c7859e7e69d
tree4a2de9e73df3991406532a145bbcfd55f30ebd78
parent335ffab3ef864539e814b9a2903b0ae420c1c067
opp: Drop empty-table checks from _put functions

The current_opp is released only when whole OPP table is released,
otherwise it's only marked as removed by dev_pm_opp_remove_table().
Functions like dev_pm_opp_put_clkname() and dev_pm_opp_put_supported_hw()
are checking whether OPP table is empty and it's not if current_opp is
set since it holds the refcount of OPP, this produces a noisy warning
from these functions about busy OPP table. Remove the checks to fix it.

Cc: stable@vger.kernel.org
Fixes: 81c4d8a3c414 ("opp: Keep track of currently programmed OPP")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c