mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-03 16:13:17 +01:00
rtc: tps6586x: Fix initial enable_irq/disable_irq balance
Interrupts are automatically enabled when requested, so we need to initialize irq_en 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
e0762fd26a
commit
1502fe0e97
1 file changed
+1
@@ -258,6 +258,7 @@ static int tps6586x_rtc_probe(struct platform_device *pdev)
|
||||
|
||||
irq_set_status_flags(rtc->irq, IRQ_NOAUTOEN);
|
||||
|
||||
rtc->irq_en = true;
|
||||
ret = devm_request_threaded_irq(&pdev->dev, rtc->irq, NULL,
|
||||
tps6586x_rtc_irq,
|
||||
IRQF_ONESHOT,
|
||||
|
||||
Reference in new issue
Block a user