pmdomain: core: Move the unused cleanup to a _sync initcall
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Wed, 27 Dec 2023 15:21:24 +0000 (16:21 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 22 Jan 2024 14:47:36 +0000 (15:47 +0100)
commit741ba0134fa7822fcf4e4a0a537a5c4cfd706b20
treeb16977772f2325d1ec535e785a63fb1f38aa967d
parent6613476e225e090cc9aad49be7fa504e290dd33d
pmdomain: core: Move the unused cleanup to a _sync initcall

The unused clock cleanup uses the _sync initcall to give all users at
earlier initcalls time to probe. Do the same to avoid leaving some PDs
dangling at "on" (which actually happened on qcom!).

Fixes: 2fe71dcdfd10 ("PM / domains: Add late_initcall to disable unused PM domains")
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20231227-topic-pmdomain_sync_cleanup-v1-1-5f36769d538b@linaro.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/core.c