rtc: rx8010: Fix return code for rx8010_probe
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Tue, 17 Dec 2019 12:12:31 +0000 (21:12 +0900)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 23 Dec 2019 10:16:23 +0000 (11:16 +0100)
In the current code, the return value of devm_request_threaded_irq may be
returned. This fixes it.

CC: Alessandro Zummo <a.zummo@towertech.it>
CC: Alexandre Belloni <alexandre.belloni@bootlin.com>
CC: Akshay Bhat <akshay.bhat@timesys.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Link: https://lore.kernel.org/r/20191217121231.2698817-2-iwamatsu@nigauri.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-rx8010.c

index 4021844bf2fa624ccd68a186b3f9d7a83fe8342c..fe010151ec8f2e69dd8e00f6aef18c149c164f00 100644 (file)
@@ -465,7 +465,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 = {