]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rtc: optee: Fix error code in optee_rtc_read_alarm()
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 18 Sep 2025 09:49:48 +0000 (12:49 +0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 5 Oct 2025 18:52:40 +0000 (20:52 +0200)
commiteb7392a019642f0ef5b9acd5e56a3f051d64a5ef
tree080551f179e735272bb4a2346ef5f746fb70eca2
parent8bbd727453b497722b3e31b5d634c35faa953fbd
rtc: optee: Fix error code in optee_rtc_read_alarm()

Return "optee_alarm" instead of "alarm".  The "alarm" pointer is a valid
pointer and not an error pointer.

Fixes: 6266aea864fa ("rtc: optee: add alarm related rtc ops to optee rtc driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/9e3718fe1128964907619ad325c0c5f5c1354ace.1758182509.git.dan.carpenter@linaro.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-optee.c