Patchwork RTC: ARM: sa1100: Remove IRQ_RTC1Hz interrupt, UIE is now emulated with AIE.

login
register
mail settings
Submitter Marcelo Roberto Jimenez
Date Feb. 8, 2011, 9:19 p.m.
Message ID <1297199993-12742-1-git-send-email-mroberto@cpti.cetuc.puc-rio.br>
Download mbox | patch
Permalink /patch/82403/
State New
Headers show

Comments

Marcelo Roberto Jimenez - Feb. 8, 2011, 9:19 p.m.
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@cpti.cetuc.puc-rio.br>
---
 drivers/rtc/rtc-sa1100.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

Patch

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);