diff options
| author | Nobuhiro Iwamatsu <[email protected]> | 2019-12-17 21:12:31 +0900 |
|---|---|---|
| committer | Alexandre Belloni <[email protected]> | 2019-12-23 11:16:23 +0100 |
| commit | aeedfe7f89bc9b2248bfd509ffcd0c2bcb2614c3 (patch) | |
| tree | 7eda23adeff5b51bd1b19d7efc7c373e95ae4007 /drivers/rtc | |
| parent | de0505660f6b3cb3f5438be32397b63f5da87454 (diff) | |
rtc: rx8010: Fix return code for rx8010_probe
In the current code, the return value of devm_request_threaded_irq may be
returned. This fixes it.
CC: Alessandro Zummo <[email protected]>
CC: Alexandre Belloni <[email protected]>
CC: Akshay Bhat <[email protected]>
Signed-off-by: Nobuhiro Iwamatsu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'drivers/rtc')
| -rw-r--r-- | drivers/rtc/rtc-rx8010.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-rx8010.c b/drivers/rtc/rtc-rx8010.c index 4021844bf2fa..fe010151ec8f 100644 --- a/drivers/rtc/rtc-rx8010.c +++ b/drivers/rtc/rtc-rx8010.c @@ -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 = { |