rtc: atcrtc100: Fix signedness bug in probe()
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 18 Nov 2025 10:48:56 +0000 (13:48 +0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 8 Dec 2025 21:59:58 +0000 (22:59 +0100)
commit159a740c768e4e8fe3c63d20055bf54de29c0c02
treee1f00730c83490c144e0c33b42d6e5730e7a15a6
parentf07640f9fb8df2158199da1da1f8282948385a84
rtc: atcrtc100: Fix signedness bug in probe()

The "atcrtc_dev->alarm_irq" variable is an unsigned int but it needs to
be signed for the error handling to work.  Use the "ret" variable
instead.

Fixes: 7adca706fe16 ("rtc: atcrtc100: Add ATCRTC100 RTC driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/aRxPGBEX8hbY6sjV@stanley.mountain
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-atcrtc100.c