]> git.dujemihanovic.xyz Git - linux.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)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 23 Mar 2023 09:50:59 +0000 (10:50 +0100)
commitd31d7300ebc0c43021ec48c0e6a3a427386f4617
treeb671c4a99640227814e97fd7318fd24d4d051ea1
parent0e6255fa3f649170da6bd1a544680589cfae1131
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: 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>
drivers/rtc/rtc-ti-k3.c