mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-04 00:23:39 +01:00
rtc: cpcap: Fix initial enable_irq/disable_irq balance
Interrupts are automatically enabled when requested, so we need to initialize alarm_enabled accordingly to avoid causing an unbalanced enable warning. Signed-off-by: Esben Haabendal <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
This commit is contained in:
1 parent
9ffe06b6cc
commit
e0762fd26a
1 file changed
+1
@@ -268,6 +268,7 @@ static int cpcap_rtc_probe(struct platform_device *pdev)
|
||||
return err;
|
||||
|
||||
rtc->alarm_irq = platform_get_irq(pdev, 0);
|
||||
rtc->alarm_enabled = true;
|
||||
err = devm_request_threaded_irq(dev, rtc->alarm_irq, NULL,
|
||||
cpcap_rtc_alarm_irq,
|
||||
IRQF_TRIGGER_NONE | IRQF_ONESHOT,
|
||||
|
||||
Reference in new issue
Block a user