aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-08-03 18:45:37 -0400
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-09-05 07:19:12 -0400
commit8a06513df55ef10baf80f55d13786eb29efa4fa6 (patch)
tree9a24ad2160aeadce3324cbe95899c3f65c00edb7 /drivers/rtc
parentfd9061fb497926c0e62bf1c7ff727801499fd2ea (diff)
rtc: rx8025: continue without alarm when irq request fails
Instead of bailing out, disable alarms and continue when devm_request_threaded_irq() fails. This allows to still provide some functionality. Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-rx8025.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-rx8025.c b/drivers/rtc/rtc-rx8025.c
index bf96f40fd200..ab5fb4fe2a83 100644
--- a/drivers/rtc/rtc-rx8025.c
+++ b/drivers/rtc/rtc-rx8025.c
@@ -533,8 +533,8 @@ static int rx8025_probe(struct i2c_client *client,
533 rx8025_handle_irq, 0, "rx8025", 533 rx8025_handle_irq, 0, "rx8025",
534 client); 534 client);
535 if (err) { 535 if (err) {
536 dev_err(&client->dev, "unable to request IRQ\n"); 536 dev_err(&client->dev, "unable to request IRQ, alarms disabled\n");
537 return err; 537 client->irq = 0;
538 } 538 }
539 } 539 }
540 540