All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] RTC: ARM: sa1100: Remove IRQ_RTC1Hz interrupt, UIE is now emulated with AIE.
@ 2011-02-08 21:19 Marcelo Roberto Jimenez
  0 siblings, 0 replies; only message in thread
From: Marcelo Roberto Jimenez @ 2011-02-08 21:19 UTC (permalink / raw
  To: linux-kernel, rtc-linux
  Cc: john.stultz, tglx, a.zummo, Marcelo Roberto Jimenez

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

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-02-08 21:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-08 21:19 [PATCH] RTC: ARM: sa1100: Remove IRQ_RTC1Hz interrupt, UIE is now emulated with AIE Marcelo Roberto Jimenez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.