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

Return an error code if kthread_create() fails.  Currently the code
returns success.

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/21f1a18008f1bbc8f70d0bd5c05b72fbf5fc9c7d.1758182509.git.dan.carpenter@linaro.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-optee.c