]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rtc: k3: handle errors while enabling wake irq
authorDhruva Gole <d-gole@ti.com>
Thu, 23 Mar 2023 08:59:04 +0000 (14:29 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:11:26 +0000 (23:11 +0900)
commitab38430a7ad70ce436ee8be193ce926b54a2f577
tree4ccbe4e7f82898eeb18faf4ac8bd8eb5606e54fb
parent39977be471eb23da6141a82814dd510bfa1c75d1
rtc: k3: handle errors while enabling wake irq

[ Upstream commit d31d7300ebc0c43021ec48c0e6a3a427386f4617 ]

Due to the potential failure of enable_irq_wake(), it would be better to
return error if it fails.

Fixes: b09d633575e5 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/rtc/rtc-ti-k3.c