Skip to content

Commit d31d730

Browse files
DhruvaG2000alexandrebelloni
authored andcommitted
rtc: k3: handle errors while enabling wake irq
Due to the potential failure of enable_irq_wake(), it would be better to return error if it fails. Fixes: b09d633 ("rtc: Introduce ti-k3-rtc") Cc: Nishanth Menon <nm@ti.com> Signed-off-by: Dhruva Gole <d-gole@ti.com> Link: https://lore.kernel.org/r/20230323085904.957999-1-d-gole@ti.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 0e6255f commit d31d730

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/rtc/rtc-ti-k3.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,8 @@ static int __maybe_unused ti_k3_rtc_suspend(struct device *dev)
632632
struct ti_k3_rtc *priv = dev_get_drvdata(dev);
633633

634634
if (device_may_wakeup(dev))
635-
enable_irq_wake(priv->irq);
635+
return enable_irq_wake(priv->irq);
636+
636637
return 0;
637638
}
638639

0 commit comments

Comments
 (0)