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>
This commit is contained in:
@@ -533,8 +533,8 @@ static int rx8025_probe(struct i2c_client *client,
|
|||||||
rx8025_handle_irq, 0, "rx8025",
|
rx8025_handle_irq, 0, "rx8025",
|
||||||
client);
|
client);
|
||||||
if (err) {
|
if (err) {
|
||||||
dev_err(&client->dev, "unable to request IRQ\n");
|
dev_err(&client->dev, "unable to request IRQ, alarms disabled\n");
|
||||||
return err;
|
client->irq = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user