diff options
author | Tian Tao <tiantao6@hisilicon.com> | 2021-03-15 03:39:30 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2021-04-17 00:54:14 +0200 |
commit | 880f25d690150937e42a2e8b86c111aae8da6d08 (patch) | |
tree | 90678f9f6be73a9a7540e7c7a03e56126dc593ff /drivers/rtc/rtc-spear.c | |
parent | dt-bindings: rtc: qcom-pm8xxx-rtc: Add qcom pm8xxx rtc bindings (diff) | |
download | linux-880f25d690150937e42a2e8b86c111aae8da6d08.tar.xz linux-880f25d690150937e42a2e8b86c111aae8da6d08.zip |
rtc: rtc-spear: replace spin_lock_irqsave by spin_lock in hard IRQ
The code has been in a irq-disabled context since it is hard IRQ. There
is no necessity to do it again.
Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/1615775970-59070-1-git-send-email-tiantao6@hisilicon.com
Diffstat (limited to '')
-rw-r--r-- | drivers/rtc/rtc-spear.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-spear.c b/drivers/rtc/rtc-spear.c index 833daeb7b60e..ee721e53c155 100644 --- a/drivers/rtc/rtc-spear.c +++ b/drivers/rtc/rtc-spear.c @@ -153,12 +153,12 @@ static void rtc_wait_not_busy(struct spear_rtc_config *config) static irqreturn_t spear_rtc_irq(int irq, void *dev_id) { struct spear_rtc_config *config = dev_id; - unsigned long flags, events = 0; + unsigned long events = 0; unsigned int irq_data; - spin_lock_irqsave(&config->lock, flags); + spin_lock(&config->lock); irq_data = readl(config->ioaddr + STATUS_REG); - spin_unlock_irqrestore(&config->lock, flags); + spin_unlock(&config->lock); if ((irq_data & RTC_INT_MASK)) { spear_rtc_clear_interrupt(config); |