]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pmdomain: core: Prevent registering devices before the bus
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 1 Jul 2025 11:47:06 +0000 (13:47 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 9 Jul 2025 11:28:44 +0000 (13:28 +0200)
commit60fe1ca5bc6ca1971c23e26078e33366de84d53e
tree12b76e8aeccfeb4917f6aa36c5a50e14c9ec8e3f
parentb27e9842b89a35fa233f9ca6f7072bd63952accc
pmdomain: core: Prevent registering devices before the bus

We must not register a consumer device to the genpd bus, before registering
the bus itself. Even if this doesn't seem to be an issue, let's add a
simple check to make sure we really avoid this from happening.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20250701114733.636510-5-ulf.hansson@linaro.org
drivers/pmdomain/core.c