From 8a06513df55ef10baf80f55d13786eb29efa4fa6 Mon Sep 17 00:00:00 2001 From: Alexandre Belloni Date: Tue, 4 Aug 2015 00:45:37 +0200 Subject: [PATCH] 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 --- drivers/rtc/rtc-rx8025.c | 4 ++-- 1 file 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, rx8025_handle_irq, 0, "rx8025", client); if (err) { - dev_err(&client->dev, "unable to request IRQ\n"); - return err; + dev_err(&client->dev, "unable to request IRQ, alarms disabled\n"); + client->irq = 0; } } -- 2.20.1