diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2024-05-29 11:19:12 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2024-06-05 11:51:58 +0200 |
commit | 0ddaf2c1a2c6c3a7bdc275581cd3b6098e0e5353 (patch) | |
tree | d1cb711bf355c6d22adf4d4cc9b05d27e253f127 /drivers/pmdomain | |
parent | pmdomain: amlogic: Add support for A4 power domains controller (diff) | |
download | linux-0ddaf2c1a2c6c3a7bdc275581cd3b6098e0e5353.tar.xz linux-0ddaf2c1a2c6c3a7bdc275581cd3b6098e0e5353.zip |
pmdomain: core: Use genpd_is_irq_safe() helper
Use the genpd_is_irq_safe() helper instead of open-coding the same
operation.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/3cd8131b4f1284bdffa23a2b6a9a1e92fd17973e.1716973951.git.geert+renesas@glider.be
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/pmdomain')
-rw-r--r-- | drivers/pmdomain/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pmdomain/core.c b/drivers/pmdomain/core.c index 623d15b68707..83d978743659 100644 --- a/drivers/pmdomain/core.c +++ b/drivers/pmdomain/core.c @@ -2079,7 +2079,7 @@ static void genpd_free_data(struct generic_pm_domain *genpd) static void genpd_lock_init(struct generic_pm_domain *genpd) { - if (genpd->flags & GENPD_FLAG_IRQ_SAFE) { + if (genpd_is_irq_safe(genpd)) { spin_lock_init(&genpd->slock); genpd->lock_ops = &genpd_spin_ops; } else { |