]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
soc: dove: Convert generic irqchip locking to guard()
authorThomas Gleixner <tglx@linutronix.de>
Thu, 13 Mar 2025 14:31:21 +0000 (15:31 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 7 Apr 2025 07:43:19 +0000 (09:43 +0200)
Conversion was done with Coccinelle. No functional change.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/all/20250313142524.137040686@linutronix.de
drivers/soc/dove/pmu.c

index 6202dbcd20a810ff6bc82e69a1eeb58d98e08003..795802bb3e7dcdc1e8756c2032c714d24d150346 100644 (file)
@@ -257,10 +257,9 @@ static void pmu_irq_handler(struct irq_desc *desc)
         * So, let's structure the code so that the window is as small as
         * possible.
         */
-       irq_gc_lock(gc);
+       guard(raw_spinlock)(&gc->lock);
        done &= readl_relaxed(base + PMC_IRQ_CAUSE);
        writel_relaxed(done, base + PMC_IRQ_CAUSE);
-       irq_gc_unlock(gc);
 }
 
 static int __init dove_init_pmu_irq(struct pmu_data *pmu, int irq)