summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2026-10-19 23:18:04 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2026-10-20 14:36:03 +0200
commit217439c8fcd29fd35cb77e3c5be65ca23dbfe983 (patch)
treef285e2fe089f07d78c6912fe22e279a71081aa7b /drivers
parentf49ca91f8a9a0d1686b3535b5421ee82fb8356bf (diff)
rtc: asm9260: use guard
Use guard() to simplify error handling Link: https://patch.msgid.link/20261019211827.126262-3-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/rtc/rtc-asm9260.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-asm9260.c b/drivers/rtc/rtc-asm9260.c
index 705470ae8428..422c2e5d83aa 100644
--- a/drivers/rtc/rtc-asm9260.c
+++ b/drivers/rtc/rtc-asm9260.c
@@ -116,15 +116,13 @@ static irqreturn_t asm9260_rtc_irq(int irq, void *dev_id)
u32 isr;
unsigned long events = 0;
- rtc_lock(priv->rtc);
+ guard(rtc_ops)(priv->rtc);
isr = ioread32(priv->iobase + HW_CIIR);
if (!isr) {
- rtc_unlock(priv->rtc);
return IRQ_NONE;
}
iowrite32(0, priv->iobase + HW_CIIR);
- rtc_unlock(priv->rtc);
events |= RTC_AF | RTC_IRQF;