All of lore.kernel.org
 help / color / mirror / Atom feed
* [Patch v2] rtc: fix for the DA9052 rtc device registration
@ 2013-03-19 11:49 Ashish Jangam
  0 siblings, 0 replies; only message in thread
From: Ashish Jangam @ 2013-03-19 11:49 UTC (permalink / raw)
  To: Andrew Morton
  Cc: linux-kernel, sameo, dchen, p_gortmaker, Alessandro Zummo,
	rtc-linux, ankur.raina

This patch adds support for the virtual irq since now MFD only handles virtual irq
Without this patch rtc device will fail in registration

Signed-off-by: Ashish <ashish.jangam@kpitcummins.com>
---
Changes since version v2:
- ported the patch for 3.9-rc3 kernel version
---
 drivers/rtc/rtc-da9052.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/drivers/rtc/rtc-da9052.c b/drivers/rtc/rtc-da9052.c
index 0dde688..969abba 100644
--- a/drivers/rtc/rtc-da9052.c
+++ b/drivers/rtc/rtc-da9052.c
@@ -239,11 +239,9 @@ static int da9052_rtc_probe(struct platform_device *pdev)
 
 	rtc->da9052 = dev_get_drvdata(pdev->dev.parent);
 	platform_set_drvdata(pdev, rtc);
-	rtc->irq = platform_get_irq_byname(pdev, "ALM");
-	ret = devm_request_threaded_irq(&pdev->dev, rtc->irq, NULL,
-				da9052_rtc_irq,
-				IRQF_TRIGGER_LOW | IRQF_ONESHOT,
-				"ALM", rtc);
+	rtc->irq =  DA9052_IRQ_ALARM;
+	ret = da9052_request_irq(rtc->da9052, rtc->irq, "ALM",
+				da9052_rtc_irq, rtc);
 	if (ret != 0) {
 		rtc_err(rtc->da9052, "irq registration failed: %d\n", ret);
 		return ret;
-- 
1.7.1



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

only message in thread, other threads:[~2013-03-19 11:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-19 11:49 [Patch v2] rtc: fix for the DA9052 rtc device registration Ashish Jangam

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.