Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2284f9c authored by Henri Roosen's avatar Henri Roosen Committed by Alexandre Belloni
Browse files

rtc: rx8025: remove obsolete local_irq_disable() and local_irq_enable() for rtc_update_irq()



Since commit e6229bec ("rtc: make rtc_update_irq callable with irqs
enabled") rtc_update_irq() is callable with irqs enabled.

Signed-off-by: default avatarHenri Roosen <henriroosen@gmail.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent 0d9030a2
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -161,9 +161,7 @@ static void rx8025_work(struct work_struct *work)
	if (status & RX8025_BIT_CTRL2_CTFG) {
		/* periodic */
		status &= ~RX8025_BIT_CTRL2_CTFG;
		local_irq_disable();
		rtc_update_irq(rx8025->rtc, 1, RTC_PF | RTC_IRQF);
		local_irq_enable();
	}

	if (status & RX8025_BIT_CTRL2_DAFG) {
@@ -172,9 +170,7 @@ static void rx8025_work(struct work_struct *work)
		if (rx8025_write_reg(client, RX8025_REG_CTRL1,
				     rx8025->ctrl1 & ~RX8025_BIT_CTRL1_DALE))
			goto out;
		local_irq_disable();
		rtc_update_irq(rx8025->rtc, 1, RTC_AF | RTC_IRQF);
		local_irq_enable();
	}

	/* acknowledge IRQ */