In the current code, the return value of devm_request_threaded_irq may be returned. This fixes it. CC: Alessandro Zummo <a.zummo@xxxxxxxxxxxx> CC: Alexandre Belloni <alexandre.belloni@xxxxxxxxxxx> CC: Akshay Bhat <akshay.bhat@xxxxxxxxxxx> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@xxxxxxxxxxx> --- drivers/rtc/rtc-rx8010.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-rx8010.c b/drivers/rtc/rtc-rx8010.c index c5d3ad2163475..5eefb30d0efc9 100644 --- a/drivers/rtc/rtc-rx8010.c +++ b/drivers/rtc/rtc-rx8010.c @@ -480,7 +480,7 @@ static int rx8010_probe(struct i2c_client *client, rx8010->rtc->max_user_freq = 1; - return err; + return 0; } static struct i2c_driver rx8010_driver = { -- 2.24.0