Skip to contentSkip to conversation

rtc: fix for the DA9052 rtc device registration

PATCH New Ashish Jangam 1 participant 1 message Mar 19, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 rtc: fix for the DA9052 rtc device registration

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

---
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(-)
drivers/rtc/rtc-da9052.c +3 -5
index 0dde688..969abba 100644
@@ -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;
Signature · 1 line
1.7.1