]> git.itanic.dy.fi Git - linux-stable/commit
OPP: Don't drop opp_table->np reference while it is still in use
authorLiang He <windhl@126.com>
Mon, 18 Jul 2022 13:36:31 +0000 (21:36 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 19 Jul 2022 05:05:18 +0000 (10:35 +0530)
commitce736cf71b5ab8ad9b741dc7a4a07e41c27d1421
treec69e9e0fbda66560642b6310cbc04b496c5c17ee
parent1e5fb38442ebaabb65057c2e58355ee36c2a178f
OPP: Don't drop opp_table->np reference while it is still in use

The OPP table contains a reference of the DT node, opp_table->np,
throughout its lifetime. We shouldn't drop the refcount for the same
from _of_init_opp_table(), but do that while removing the OPP table
finally.

Signed-off-by: Liang He <windhl@126.com>
[ Viresh: Updated subject / commit log and drop reference from
  _of_clear_opp_table() ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/of.c