cpuidle: dt_idle_genpd: Add helper function to remove genpd topology
authorMaulik Shah <quic_mkshah@quicinc.com>
Mon, 3 Jul 2023 08:55:53 +0000 (14:25 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 8 Aug 2023 14:06:20 +0000 (16:06 +0200)
commit9a8fa00dad3c7b260071f2f220cfb00505372c40
tree7ca0c13aed664c7b94b88bdce010f5785814a618
parent52a93d39b17dc7eb98b6aa3edb93943248e03b2f
cpuidle: dt_idle_genpd: Add helper function to remove genpd topology

Genpd parent and child domain topology created using dt_idle_pd_init_topology()
needs to be removed during error cases.

Add new helper function dt_idle_pd_remove_topology() for same.

Cc: stable@vger.kernel.org
Reviewed-by: Ulf Hanssson <ulf.hansson@linaro.org>
Signed-off-by: Maulik Shah <quic_mkshah@quicinc.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/cpuidle/dt_idle_genpd.c
drivers/cpuidle/dt_idle_genpd.h