rtc: rx8025: continue without alarm when irq request fails
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 3 Aug 2015 22:45:37 +0000 (00:45 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 5 Sep 2015 11:19:12 +0000 (13:19 +0200)
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>
drivers/rtc/rtc-rx8025.c

index bf96f40fd200f3e8324de5f0127c2c6bd738d286..ab5fb4fe2a835ad6056fd954de9e04550e20f707 100644 (file)
@@ -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;
                }
        }