[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1297199993-12742-1-git-send-email-mroberto@cpti.cetuc.puc-rio.br>
Date: Tue, 8 Feb 2011 19:19:53 -0200
From: Marcelo Roberto Jimenez <mroberto@...i.cetuc.puc-rio.br>
To: linux-kernel@...r.kernel.org, rtc-linux@...glegroups.com
Cc: john.stultz@...aro.org, tglx@...utronix.de, a.zummo@...ertech.it,
Marcelo Roberto Jimenez <mroberto@...i.cetuc.puc-rio.br>
Subject: [PATCH] RTC: ARM: sa1100: Remove IRQ_RTC1Hz interrupt, UIE is now emulated with AIE.
Since update interrupts are now emulated using alarm interrupts, there
is no need to set up hardware update interrupts. This patch removes the
corresponding code.
Signed-off-by: Marcelo Roberto Jimenez <mroberto@...i.cetuc.puc-rio.br>
---
drivers/rtc/rtc-sa1100.c | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
diff --git a/drivers/rtc/rtc-sa1100.c b/drivers/rtc/rtc-sa1100.c
index 37b102c..fe4eed7 100644
--- a/drivers/rtc/rtc-sa1100.c
+++ b/drivers/rtc/rtc-sa1100.c
@@ -161,12 +161,6 @@ static int sa1100_rtc_open(struct device *dev)
struct platform_device *plat_dev = to_platform_device(dev);
struct rtc_device *rtc = platform_get_drvdata(plat_dev);
- ret = request_irq(IRQ_RTC1Hz, sa1100_rtc_interrupt, IRQF_DISABLED,
- "rtc 1Hz", dev);
- if (ret) {
- dev_err(dev, "IRQ %d already in use.\n", IRQ_RTC1Hz);
- goto fail_ui;
- }
ret = request_irq(IRQ_RTCAlrm, sa1100_rtc_interrupt, IRQF_DISABLED,
"rtc Alrm", dev);
if (ret) {
@@ -179,8 +173,6 @@ static int sa1100_rtc_open(struct device *dev)
return 0;
fail_ai:
- free_irq(IRQ_RTC1Hz, dev);
- fail_ui:
return ret;
}
@@ -193,10 +185,8 @@ static void sa1100_rtc_release(struct device *dev)
spin_unlock_irq(&sa1100_rtc_lock);
free_irq(IRQ_RTCAlrm, dev);
- free_irq(IRQ_RTC1Hz, dev);
}
-
static int sa1100_rtc_alarm_irq_enable(struct device *dev, unsigned int enabled)
{
spin_lock_irq(&sa1100_rtc_lock);
--
1.7.3.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists