Skip to content

Commit b54bd5a

Browse files
committed
soc: dove: Convert generic irqchip locking to guard()
Conversion was done with Coccinelle. No functional change. Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 195298c commit b54bd5a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/soc/dove/pmu.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,9 @@ static void pmu_irq_handler(struct irq_desc *desc)
257257
* So, let's structure the code so that the window is as small as
258258
* possible.
259259
*/
260-
irq_gc_lock(gc);
260+
guard(raw_spinlock)(&gc->lock);
261261
done &= readl_relaxed(base + PMC_IRQ_CAUSE);
262262
writel_relaxed(done, base + PMC_IRQ_CAUSE);
263-
irq_gc_unlock(gc);
264263
}
265264

266265
static int __init dove_init_pmu_irq(struct pmu_data *pmu, int irq)

0 commit comments

Comments
 (0)