mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] rtc: da9063: Fix ALARM interrupt registration.
@ 2014-11-20  9:54 Dmitry Lavnikevich
  2014-11-20 11:23 ` Opensource [Steve Twiss]
  0 siblings, 1 reply; 6+ messages in thread
From: Dmitry Lavnikevich @ 2014-11-20  9:54 UTC (permalink / raw)
  To: support.opensource, a.zummo, rtc-linux, linux-kernel; +Cc: Dmitry Lavnikevich

Call platform_get_irq_byname() returns local IRQ number. Use
regmap_irq_get_virq() to get VIRQ instead.
This fixes rtc initialization error:
da9063-rtc da9063-rtc: Failed to request ALARM IRQ 1: -22

Signed-off-by: Dmitry Lavnikevich <d.lavnikevich@sam-solutions.com>
---
 drivers/rtc/rtc-da9063.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/rtc/rtc-da9063.c b/drivers/rtc/rtc-da9063.c
index 731ed1a..04743a6 100644
--- a/drivers/rtc/rtc-da9063.c
+++ b/drivers/rtc/rtc-da9063.c
@@ -315,6 +315,7 @@ static int da9063_rtc_probe(struct platform_device *pdev)
 	platform_set_drvdata(pdev, rtc);
 
 	irq_alarm = platform_get_irq_byname(pdev, "ALARM");
+	irq_alarm = regmap_irq_get_virq(da9063->regmap_irq, irq_alarm);
 	ret = devm_request_threaded_irq(&pdev->dev, irq_alarm, NULL,
 					da9063_alarm_event,
 					IRQF_TRIGGER_LOW | IRQF_ONESHOT,
-- 
2.1.3


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-11-21 13:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-20  9:54 [PATCH] rtc: da9063: Fix ALARM interrupt registration Dmitry Lavnikevich
2014-11-20 11:23 ` Opensource [Steve Twiss]
2014-11-20 13:09   ` Dmitry Lavnikevich
2014-11-20 14:43     ` Opensource [Steve Twiss]
2014-11-21 12:04       ` Dmitry Lavnikevich
2014-11-21 13:23         ` Opensource [Steve Twiss]

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®